stat-fix-2
This commit is contained in:
parent
16bbe995b7
commit
807f6ba5b1
|
@ -100,6 +100,7 @@ async def get_shout(_, _info, slug=None, shout_id=None):
|
||||||
reacted_stat,
|
reacted_stat,
|
||||||
commented_stat,
|
commented_stat,
|
||||||
rating_stat,
|
rating_stat,
|
||||||
|
_last_comment,
|
||||||
] = author_stats
|
] = author_stats
|
||||||
shout.stat = {
|
shout.stat = {
|
||||||
"viewed": viewed_stat,
|
"viewed": viewed_stat,
|
||||||
|
@ -174,7 +175,6 @@ async def load_shouts_by(_, info, options):
|
||||||
q = q.limit(limit).offset(offset)
|
q = q.limit(limit).offset(offset)
|
||||||
|
|
||||||
shouts = []
|
shouts = []
|
||||||
shouts_map = {}
|
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
for [
|
for [
|
||||||
shout,
|
shout,
|
||||||
|
@ -190,7 +190,6 @@ async def load_shouts_by(_, info, options):
|
||||||
"rating": rating_stat,
|
"rating": rating_stat,
|
||||||
}
|
}
|
||||||
shouts.append(shout)
|
shouts.append(shout)
|
||||||
shouts_map[shout.id] = shout
|
|
||||||
|
|
||||||
return shouts
|
return shouts
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user