From 59dec8cad67bfc7bb0f10c84753b45ddf233cdc3 Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 26 Jan 2024 04:24:47 +0300 Subject: [PATCH] query-fix --- .pre-commit-config.yaml | 2 -- resolvers/reader.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fec63909..45a15765 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,3 @@ -fail_fast: true - repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 diff --git a/resolvers/reader.py b/resolvers/reader.py index a506626a..39e61a2d 100644 --- a/resolvers/reader.py +++ b/resolvers/reader.py @@ -343,7 +343,7 @@ async def load_shouts_search(_, _info, text, limit=50, offset=0): if topic: shout_data['main_topic'] = topic authors = ( - session.query(Author) + session.query(Author, ShoutAuthor) .join( ShoutTopic, and_(