load-authors-by-fix
Some checks failed
Deploy on push / deploy (push) Failing after 5s

This commit is contained in:
Untone 2024-02-29 11:00:41 +03:00
parent 5e8b7cfe98
commit a3c94a9ab7

View File

@ -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)