p[]()(0[]

This commit is contained in:
2022-09-07 20:17:25 +03:00
parent 7e442030fd
commit bd1318dadd
2 changed files with 12 additions and 52 deletions

View File

@@ -198,46 +198,6 @@ class ShoutsCache:
print("[zine.cache] indexed by %d topics " % len(shouts_by_topic.keys()))
ShoutsCache.by_topic = shouts_by_topic
@staticmethod
async def get_shouts_by_author():
async with ShoutsCache.lock:
return ShoutsCache.by_author
@staticmethod
async def get_shouts_by_topic():
async with ShoutsCache.lock:
return ShoutsCache.by_topic
@staticmethod
async def get_top_overall():
async with ShoutsCache.lock:
return ShoutsCache.by_topic
@staticmethod
async def get_top_month():
async with ShoutsCache.lock:
return ShoutsCache.by_topic
@staticmethod
async def get_top_viewed():
async with ShoutsCache.lock:
return ShoutsCache.by_topic
@staticmethod
async def get_recent_published():
async with ShoutsCache.lock:
return ShoutsCache.recent_published
@staticmethod
async def get_recent_all():
async with ShoutsCache.lock:
return ShoutsCache.recent_all
@staticmethod
async def get_recent_reacted():
async with ShoutsCache.lock:
return ShoutsCache.recent_reacted
@staticmethod
async def worker():
while True: