stat-fix-3

This commit is contained in:
Untone 2023-12-02 23:30:06 +03:00
parent 807f6ba5b1
commit fcdaabd10d

View File

@ -96,14 +96,13 @@ async def get_shout(_, _info, slug=None, shout_id=None):
if author_stats: if author_stats:
[ [
shout, shout,
viewed_stat,
reacted_stat, reacted_stat,
commented_stat, commented_stat,
rating_stat, rating_stat,
_last_comment, _last_comment,
] = author_stats ] = author_stats
shout.stat = { shout.stat = {
"viewed": viewed_stat, "viewed": ViewedStorage.get_shout(shout.slug),
"reacted": reacted_stat, "reacted": reacted_stat,
"commented": commented_stat, "commented": commented_stat,
"rating": rating_stat, "rating": rating_stat,