some fixes

This commit is contained in:
2022-07-10 21:52:57 +03:00
parent cb798dc554
commit 910f8f59e6
7 changed files with 52 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ import asyncio
from sqlalchemy import func, and_
@query.field("topicsBySlugs")
@query.field("topicsAll")
async def topics_by_slugs(_, info, slugs = None):
with local_session() as session:
topics = await TopicStorage.get_topics(slugs)