typingsfix
This commit is contained in:
@@ -38,7 +38,7 @@ class Reaction(Base):
|
||||
oid: str = Column(String, nullable=True, comment="Old ID")
|
||||
|
||||
@property
|
||||
async def stat(self) -> dict:
|
||||
async def stat(self) -> Dict:
|
||||
reacted = 0
|
||||
try:
|
||||
with local_session() as session:
|
||||
|
@@ -61,7 +61,7 @@ class Shout(Base):
|
||||
oid: str = Column(String, nullable=True)
|
||||
|
||||
@property
|
||||
async def stat(self) -> dict:
|
||||
async def stat(self) -> Dict:
|
||||
return {
|
||||
"viewed": await ViewedStorage.get_shout(self.slug),
|
||||
"reacted": await ReactionsStorage.by_shout(self.slug)
|
||||
|
Reference in New Issue
Block a user