From ed71405082942d00e9d990b3a4300dc107af73cc Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 28 Apr 2025 10:30:58 +0300 Subject: [PATCH] topic-commented-stat-fix4 --- resolvers/topic.py | 1 - 1 file changed, 1 deletion(-) diff --git a/resolvers/topic.py b/resolvers/topic.py index c3b61c65..000f6d07 100644 --- a/resolvers/topic.py +++ b/resolvers/topic.py @@ -123,7 +123,6 @@ async def get_topics_with_stats(limit=100, offset=0, community_id=None, by=None) followers_stats_query = f""" SELECT topic, COUNT(DISTINCT follower) as followers_count FROM topic_followers tf - JOIN shout s ON tf.shout = s.id AND s.deleted_at IS NULL AND s.published_at IS NOT NULL WHERE topic IN ({",".join(map(str, topic_ids))}) GROUP BY topic """