This commit is contained in:
parent
f41359b8c9
commit
9c4ddea33d
|
@ -309,8 +309,9 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0):
|
|||
result = local_session().execute(query_shouts().filter(Shout.id.in_(hits_ids))).unique().first()
|
||||
if result:
|
||||
logger.debug(result)
|
||||
logger.debug(len(result))
|
||||
shouts = []
|
||||
for shout in result:
|
||||
for [shout,] in result:
|
||||
logger.debug(shout)
|
||||
shout.score = scores[f"{shout.id}"]
|
||||
shouts.append(shout)
|
||||
|
|
Loading…
Reference in New Issue
Block a user