remotes/1693045480750635534/spooky-22
parent
fe16d45145
commit
cba234083b
|
@ -128,7 +128,7 @@ 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("list +"time.time() - time1)
|
||||
print("list " + time.time() - time1)
|
||||
elif sort == "bottom":
|
||||
time1 = time.time()
|
||||
posts = posts.order_by(Submission.sexscore.desc()).all()
|
||||
|
|
Loading…
Reference in New Issue