master
Aevann1 2021-08-06 14:39:06 +02:00
parent 1010ed626e
commit fe16d45145
1 changed files with 2 additions and 2 deletions

View File

@ -128,11 +128,11 @@ def frontlist(v=None, sort="hot", page=1,t="all", ids_only=True, filter_words=''
elif sort == "top":
time1 = time.time()
posts = sorted(posts.all(), key=lambda x: x.score, reverse=True)
print(time.time() - time1)
print("list +"time.time() - time1)
elif sort == "bottom":
time1 = time.time()
posts = posts.order_by(Submission.sexscore.desc()).all()
print(time.time() - time1)
print("func " + time.time() - time1)
elif sort == "comments":
posts = posts.order_by(Submission.comment_count.desc()).all()
elif sort == "random":