From 2bc0ac1cffbf52425c7f7bfe05fd8374928ba664 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 31 Oct 2024 15:14:58 +0300 Subject: [PATCH] maintopicslug --- resolvers/reader.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/resolvers/reader.py b/resolvers/reader.py index e51f621c..b851a7e0 100644 --- a/resolvers/reader.py +++ b/resolvers/reader.py @@ -62,8 +62,7 @@ def query_shouts(slug=None, shout_id=None): func.json_build_object( "id", Topic.id, "title", Topic.title, - "slug", Topic.slug, - "is_main", ShoutTopic.main + "slug", Topic.slug ) ).label("topics") ) @@ -200,8 +199,7 @@ def get_shouts_with_stats(q, limit=20, offset=0, author_id=None): func.json_build_object( "id", Topic.id, "title", Topic.title, - "slug", Topic.slug, - "is_main", ShoutTopic.main + "slug", Topic.slug ) ).label("topics"), )