Merge branch 'main' of github.com:Discours/discours-backend into viewed

This commit is contained in:
2022-11-22 08:04:14 +03:00
10 changed files with 31 additions and 16 deletions

View File

@@ -36,7 +36,8 @@ class ReactedStorage:
@staticmethod
async def get_shout_stat(slug):
return {
"viewed": await ViewedStorage.get_shout(slug),
# TODO
"viewed": 0, # await ViewedStorage.get_shout(slug),
"reacted": len(await ReactedStorage.get_shout(slug)),
"commented": len(await ReactedStorage.get_comments(slug)),
"rating": await ReactedStorage.get_rating(slug),