fd
This commit is contained in:
parent
62d8ffb8c0
commit
37dbd32ca6
1 changed files with 2 additions and 2 deletions
|
@ -162,8 +162,8 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
|||
if lt:
|
||||
posts = posts.filter(Submission.created_utc < lt)
|
||||
|
||||
if not (v and v.shadowbanned):
|
||||
posts = posts.join(Submission.author).filter(User.shadowbanned == False)
|
||||
# if not (v and v.shadowbanned):
|
||||
# posts = posts.join(Submission.author).filter(User.shadowbanned == False)
|
||||
|
||||
if sort == "hot":
|
||||
posts = sorted(posts.all(), key=lambda x: x.hotscore, reverse=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue