diff --git a/orm/shout.py b/orm/shout.py index 58d35edf..69dde280 100644 --- a/orm/shout.py +++ b/orm/shout.py @@ -171,6 +171,12 @@ class TopicStat: @staticmethod async def load_stat(session): self = TopicStat + + self.shouts_by_topic = {} + self.authors_by_topic = {} + self.subs_by_topic = {} + self.views_by_topic = {} + shout_topics = session.query(ShoutTopic) for shout_topic in shout_topics: topic = shout_topic.topic