fds
This commit is contained in:
parent
fd207174e0
commit
efc41907a5
1 changed files with 2 additions and 0 deletions
|
@ -219,7 +219,9 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
||||||
posts = posts.order_by(Submission.upvotes - Submission.downvotes)
|
posts = posts.order_by(Submission.upvotes - Submission.downvotes)
|
||||||
elif sort == "comments":
|
elif sort == "comments":
|
||||||
print("WTF")
|
print("WTF")
|
||||||
|
print([x.comment_count for x in posts.all()])
|
||||||
posts = posts.order_by(Submission.comment_count.desc())
|
posts = posts.order_by(Submission.comment_count.desc())
|
||||||
|
return([x.comment_count for x in posts.all()])
|
||||||
|
|
||||||
posts = posts.offset(25 * (page - 1)).limit(26).all()
|
posts = posts.offset(25 * (page - 1)).limit(26).all()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue