This commit is contained in:
parent
465d9093bd
commit
0abb4d605d
|
@ -309,7 +309,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0):
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
shouts = session.query(Shout).filter(Shout.id.in_(hits_ids)).all()
|
shouts = session.query(Shout).filter(Shout.id.in_(hits_ids)).all()
|
||||||
for shout in shouts:
|
for shout in shouts:
|
||||||
shout["score"] = scores[int(shout.id)]
|
shout.score = scores[int(shout.id)]
|
||||||
return shouts
|
return shouts
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user