From 364fdd1cd699d6d5f4f0a01802eef1ea7d3bf159 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Thu, 21 Jul 2022 19:15:05 +0300 Subject: [PATCH] nodict --- orm/shout.py | 2 +- storages/topicstat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orm/shout.py b/orm/shout.py index ac6e1791..a178df08 100644 --- a/orm/shout.py +++ b/orm/shout.py @@ -61,7 +61,7 @@ class Shout(Base): oid: str = Column(String, nullable=True) @property - async def stat(self) -> Dict: + async def stat(self): return { "viewed": await ViewedStorage.get_shout(self.slug), "reacted": await ReactionsStorage.by_shout(self.slug) diff --git a/storages/topicstat.py b/storages/topicstat.py index b8c49178..662827b7 100644 --- a/storages/topicstat.py +++ b/storages/topicstat.py @@ -55,7 +55,7 @@ class TopicStat: return self.shouts_by_topic.get(topic, []) @staticmethod - async def get_stat(topic) -> Dict: + async def get_stat(topic): self = TopicStat async with self.lock: shouts = self.shouts_by_topic.get(topic, [])