server-cli-todo-cleanup
This commit is contained in:
@@ -12,7 +12,6 @@ class UserStorage:
|
||||
self = UserStorage
|
||||
users = session.query(User).\
|
||||
options(selectinload(User.roles), selectinload(User.ratings)).all()
|
||||
# TODO: add shouts and reactions counters
|
||||
self.users = dict([(user.id, user) for user in users])
|
||||
print('[service.auth] %d users' % len(self.users))
|
||||
|
||||
|
@@ -48,7 +48,6 @@ class ReactedStorage:
|
||||
self.this_day_reactions[shout] = reaction
|
||||
|
||||
print('[service.reacted] watching %d shouts' % len(reactions))
|
||||
# TODO: add reactions ?
|
||||
|
||||
@staticmethod
|
||||
async def get_shout(shout_slug):
|
||||
|
@@ -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):
|
||||
|
@@ -20,7 +20,8 @@ class ShoutAuthorStorage:
|
||||
self.authors_by_shout[shout].append(user)
|
||||
else:
|
||||
self.authors_by_shout[shout] = [user]
|
||||
print('[service.shoutauthor] %d shouts ' % len(self.authors_by_shout))
|
||||
print('[service.shoutauthor] %d authors ' % len(self.authors_by_shout))
|
||||
# FIXME: [service.shoutauthor] 4251 authors
|
||||
|
||||
@staticmethod
|
||||
async def get_authors(shout):
|
||||
|
Reference in New Issue
Block a user