join-clause-groupby-fixes
All checks were successful
Deploy to core / deploy (push) Successful in 1m6s

This commit is contained in:
2024-02-23 03:03:34 +03:00
parent 60c7ab5fe4
commit 8d97463c1d
2 changed files with 2 additions and 3 deletions

View File

@@ -37,7 +37,6 @@ def get_topics_by_author(_, _info, author_id=None, slug='', user=''):
@query.field('get_topic')
def get_topic(_, _info, slug):
q = select(Topic).filter(Topic.slug == slug)
q = q.group_by(Topic.id)
topics = get_topics_with_stat(q)
if topics:
return topics[0]