recent-commented

This commit is contained in:
2022-09-19 19:14:20 +03:00
parent c479b12e65
commit a8313d1324
4 changed files with 43 additions and 2 deletions

View File

@@ -64,6 +64,12 @@ async def recent_reacted(_, _info, offset, limit):
return ShoutsCache.recent_reacted[offset : offset + limit]
@query.field("recentCommented")
async def recent_commented(_, _info, offset, limit):
async with ShoutsCache.lock:
return ShoutsCache.recent_commented[offset : offset + limit]
@query.field("getShoutBySlug")
async def get_shout_by_slug(_, info, slug):
all_fields = [