From a3c94a9ab714aa208237d22061fcacb14de9d2c1 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 29 Feb 2024 11:00:41 +0300 Subject: [PATCH] load-authors-by-fix --- resolvers/author.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resolvers/author.py b/resolvers/author.py index 8e20493a..a64116c3 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -124,7 +124,7 @@ def load_authors_by(_, _info, by, limit, offset): if order in ['likes', 'shouts', 'followers']: q = q.order_by(desc(text(f'{order}_stat'))) - q = q.distinct() + # q = q.distinct() q = q.limit(limit).offset(offset) authors = get_with_stat(q)