This commit is contained in:
parent
cd99041bcc
commit
25a65d09d6
|
@ -50,8 +50,7 @@ async def get_topics_by_author(_, _info, author_id=0, slug='', user=''):
|
||||||
def get_topic(_, _info, slug: str):
|
def get_topic(_, _info, slug: str):
|
||||||
q = select(Topic).filter(Topic.slug == slug)
|
q = select(Topic).filter(Topic.slug == slug)
|
||||||
result = get_with_stat(q)
|
result = get_with_stat(q)
|
||||||
if result:
|
for topic in result:
|
||||||
[topic] = result
|
|
||||||
return topic
|
return topic
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user