fds
This commit is contained in:
parent
6595be7e7a
commit
c848a677e9
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue