needed queries

This commit is contained in:
2021-10-30 19:58:15 +03:00
parent 741ede054d
commit ee53fe7508
2 changed files with 12 additions and 6 deletions

View File

@@ -93,6 +93,12 @@ class TopShouts:
async with TopShouts.lock:
TopShouts.shouts_by_rating = shouts
@staticmethod
async def prepare_shouts_by_time():
month_ago = datetime.now() - timedelta(days = 30)
with local_session() as session:
# TODO: select recent shouts
@staticmethod
async def prepare_favorites_shouts():
with local_session() as session: