all-authors-stat-fix
This commit is contained in:
@@ -249,10 +249,10 @@ async def get_authors_with_stats(
|
||||
|
||||
# Запрос на получение статистики по подписчикам для авторов
|
||||
followers_stats_query = f"""
|
||||
SELECT author, COUNT(DISTINCT follower) as followers_count
|
||||
SELECT following, COUNT(DISTINCT follower) as followers_count
|
||||
FROM author_follower
|
||||
WHERE author IN ({placeholders})
|
||||
GROUP BY author
|
||||
WHERE following IN ({placeholders})
|
||||
GROUP BY following
|
||||
"""
|
||||
followers_stats = {row[0]: row[1] for row in session.execute(text(followers_stats_query), params)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user