xz
This commit is contained in:
parent
b41d17dd45
commit
b41d9322f3
1 changed files with 2 additions and 0 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue