forked from rDrama/rDrama
1
0
Fork 0
master
fireworks88 2021-09-09 22:14:47 +02:00
parent 653e29e829
commit a34cd6f0fa
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ 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)
print('fartbinn' in [x.author.username for x in posts])
if sort == "hot":
posts = sorted(posts.all(), key=lambda x: x.hotscore, reverse=True)
elif sort == "new":