df
This commit is contained in:
parent
237ff4c2f2
commit
c135832749
3 changed files with 2 additions and 5 deletions
|
@ -193,7 +193,7 @@ class User(Base, Stndrd, Age_times):
|
|||
elif sort == "bottom":
|
||||
submissions = sorted(submissions.all(), key=lambda x: x.score)
|
||||
elif sort == "comments":
|
||||
submissions = sorted(submissions.all(), key=lambda x: x.comment_count, reverse=True)
|
||||
submissions = submissions.order_by(Submission.comment_count.desc()).all()
|
||||
|
||||
firstrange = 25 * (page - 1)
|
||||
secondrange = firstrange + 26
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue