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