stat-fix-4

This commit is contained in:
Untone 2023-12-02 23:35:06 +03:00
parent fcdaabd10d
commit 2e3e79f51e

View File

@ -145,7 +145,7 @@ async def load_shouts_by(_, info, options):
"""
q = (
select(Shout, Author)
select(Shout)
.options(
joinedload(Shout.authors),
joinedload(Shout.topics),
@ -180,7 +180,6 @@ async def load_shouts_by(_, info, options):
reacted_stat,
commented_stat,
rating_stat,
_last_comment,
] in session.execute(q).unique():
shout.stat = {
"viewed": ViewedStorage.get_shout(shout.slug),