This commit is contained in:
@@ -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().filter(Shout.id.in_(hits_ids))).unique()
|
result = local_session().execute(query_shouts().filter(Shout.id.in_(hits_ids))).unique().first()
|
||||||
if result:
|
if result:
|
||||||
logger.debug(result)
|
logger.debug(result)
|
||||||
shouts = []
|
shouts = []
|
||||||
|
|||||||
Reference in New Issue
Block a user