p[]()(0[]
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user