topic-commented-stat-fix4
All checks were successful
Deploy on push / deploy (push) Successful in 46s
All checks were successful
Deploy on push / deploy (push) Successful in 46s
This commit is contained in:
parent
79e1f15a2e
commit
ed71405082
|
@ -123,7 +123,6 @@ async def get_topics_with_stats(limit=100, offset=0, community_id=None, by=None)
|
||||||
followers_stats_query = f"""
|
followers_stats_query = f"""
|
||||||
SELECT topic, COUNT(DISTINCT follower) as followers_count
|
SELECT topic, COUNT(DISTINCT follower) as followers_count
|
||||||
FROM topic_followers tf
|
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))})
|
WHERE topic IN ({",".join(map(str, topic_ids))})
|
||||||
GROUP BY topic
|
GROUP BY topic
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user