This commit is contained in:
parent
6b8b61fa37
commit
23e46df8a9
|
@ -310,7 +310,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0):
|
||||||
shouts_query = query_shouts().filter(Shout.id.in_(hits_ids))
|
shouts_query = query_shouts().filter(Shout.id.in_(hits_ids))
|
||||||
shouts = []
|
shouts = []
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
result = session.execute(shouts_query).all()
|
result = session.execute(shouts_query).unique().all()
|
||||||
if result:
|
if result:
|
||||||
logger.debug(result)
|
logger.debug(result)
|
||||||
logger.debug(len(result))
|
logger.debug(len(result))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user