stat-fix-4
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user