forked from MarseyWorld/MarseyWorld
fds
parent
2e97bff1b0
commit
cfcc71ceed
|
@ -141,7 +141,7 @@ def searchposts(v):
|
||||||
elif sort == "comments":
|
elif sort == "comments":
|
||||||
posts = posts.order_by(Submission.comment_count.desc())
|
posts = posts.order_by(Submission.comment_count.desc())
|
||||||
|
|
||||||
total = len(posts)
|
total = posts.count()
|
||||||
|
|
||||||
posts = posts.offset(25 * (page - 1)).limit(26).all()
|
posts = posts.offset(25 * (page - 1)).limit(26).all()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue