join-clause-groupby-fixes
All checks were successful
Deploy to core / deploy (push) Successful in 1m6s
All checks were successful
Deploy to core / deploy (push) Successful in 1m6s
This commit is contained in:
@@ -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]
|
||||
|
Reference in New Issue
Block a user