fieldnames-fix
All checks were successful
Deploy on push / deploy (push) Successful in 1m48s

This commit is contained in:
2024-02-23 21:27:38 +03:00
parent f04e20426f
commit 586672b279
4 changed files with 20 additions and 20 deletions

View File

@@ -191,11 +191,11 @@ def author_follows_topics(author_id: int):
subquery_topic_followers = (
select(
[
TopicFollower.topic_id,
TopicFollower.topic,
func.count(distinct(TopicFollower.follower)).label('followers_stat'),
]
)
.group_by(TopicFollower.topic_id)
.group_by(TopicFollower.topic)
.alias()
)