This commit is contained in:
fireworks88 2021-09-09 22:12:01 +02:00
parent ba1ce0e2b1
commit 06c55ac461

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":