This commit is contained in:
parent
44b797c1de
commit
f41359b8c9
|
@ -306,7 +306,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0):
|
|||
shout_id = str(shout_id)
|
||||
scores[shout_id] = sr.get("score")
|
||||
hits_ids.append(shout_id)
|
||||
result = local_session().execute(query_shouts().filter(Shout.id.in_(hits_ids))).unique()
|
||||
result = local_session().execute(query_shouts().filter(Shout.id.in_(hits_ids))).unique().first()
|
||||
if result:
|
||||
logger.debug(result)
|
||||
shouts = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user