needed queries
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user