server-cli-todo-cleanup

This commit is contained in:
2022-08-11 14:22:10 +03:00
parent 0ba5047ff9
commit f13f40c89a
18 changed files with 106 additions and 33 deletions

View File

@@ -17,7 +17,6 @@ class ViewedByDay(Base):
class ViewedStorage:
viewed = {
'shouts': {},
# TODO: ? 'reactions': {},
'topics': {} # TODO: get sum views for all shouts in topic
}
this_day_views = {}
@@ -43,7 +42,6 @@ class ViewedStorage:
self.this_day_views[shout] = view
print('[service.viewed] watching %d shouts' % len(views))
# TODO: add reactions ?
@staticmethod
async def get_shout(shout_slug):