This commit is contained in:
parent
5e8b7cfe98
commit
a3c94a9ab7
|
@ -124,7 +124,7 @@ def load_authors_by(_, _info, by, limit, offset):
|
||||||
if order in ['likes', 'shouts', 'followers']:
|
if order in ['likes', 'shouts', 'followers']:
|
||||||
q = q.order_by(desc(text(f'{order}_stat')))
|
q = q.order_by(desc(text(f'{order}_stat')))
|
||||||
|
|
||||||
q = q.distinct()
|
# q = q.distinct()
|
||||||
q = q.limit(limit).offset(offset)
|
q = q.limit(limit).offset(offset)
|
||||||
|
|
||||||
authors = get_with_stat(q)
|
authors = get_with_stat(q)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user