This commit is contained in:
Aevann1 2021-09-25 01:41:09 +02:00
parent 6595be7e7a
commit c848a677e9

View file

@ -141,7 +141,7 @@ def searchposts(v):
elif sort == "comments":
posts = posts.order_by(Submission.comment_count.desc())
total = len(posts)
total = posts.count()
posts = posts.offset(25 * (page - 1)).limit(26).all()