search-query-fix-7
All checks were successful
deploy / deploy (push) Successful in 1m31s

This commit is contained in:
Untone 2023-12-25 05:04:53 +03:00
parent 5492887a10
commit c4c7ce0ad4

View File

@ -296,7 +296,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0):
joinedload(Shout.authors),
joinedload(Shout.topics),
)
.where(and_(Shout.deleted_at.is_(None), Shout.id.in_(results_dict.keys())))
.where(and_(Shout.deleted_at.is_(None), Shout.slug.in_(results_dict.keys())))
)
with local_session() as session: