remotes/1693045480750635534/spooky-22
fireworks88 2021-09-09 22:12:01 +02:00
parent 72e74af44a
commit 25787aa409
1 changed files with 3 additions and 0 deletions

View File

@ -162,6 +162,9 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
else:
posts = posts.join(Submission.author).filter(User.shadowbanned == False)
for x in posts:
print(x.author.username)
if sort == "hot":
posts = sorted(posts.all(), key=lambda x: x.hotscore, reverse=True)
elif sort == "new":