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