tolerate
Some checks failed
Deploy on push / deploy (push) Failing after 6s

This commit is contained in:
Untone 2024-04-09 22:35:11 +03:00
parent cd99041bcc
commit 25a65d09d6

View File

@ -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