fds
This commit is contained in:
parent
3708b40b65
commit
ab0ca5aec5
1 changed files with 1 additions and 3 deletions
|
@ -215,10 +215,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
|||
elif sort == "bottom":
|
||||
posts = posts.order_by(Submission.upvotes - Submission.downvotes)
|
||||
elif sort == "comments":
|
||||
print("WTF")
|
||||
print(posts.all())
|
||||
posts = posts.order_by(Submission.comment_count.desc())
|
||||
print(posts.all())
|
||||
|
||||
posts = posts.offset(25 * (page - 1)).limit(26).all()
|
||||
|
||||
|
@ -230,6 +227,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
|||
|
||||
if ids_only: posts = [x.id for x in posts]
|
||||
|
||||
print(posts)
|
||||
return posts, next_exists
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue