remotes/1693045480750635534/spooky-22
Aevann1 2021-08-22 15:15:10 +02:00
parent 11c2480764
commit 530a75bb75
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ def changeloglist(v=None, sort="new", page=1 ,t="all", **kwargs):
elif sort == "bottom":
posts = sorted(posts.all(), key=lambda x: x.score)
elif sort == "comments":
posts = sorted(posts.all(), key=lambda x: x.comment_count, reverse=True)
posts = posts.order_by(Submission.comment_count.desc()).all()
elif sort == "random":
posts = posts.all()
posts = random.sample(posts, k=len(posts))