forked from rDrama/rDrama
master
parent
15486f6d5f
commit
4790b1bb23
|
@ -162,8 +162,8 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
||||||
if lt:
|
if lt:
|
||||||
posts = posts.filter(Submission.created_utc < lt)
|
posts = posts.filter(Submission.created_utc < lt)
|
||||||
|
|
||||||
if not (v and v.shadowbanned):
|
# if not (v and v.shadowbanned):
|
||||||
posts = posts.join(Submission.author).filter(User.shadowbanned == False)
|
# posts = posts.join(Submission.author).filter(User.shadowbanned == False)
|
||||||
|
|
||||||
if sort == "hot":
|
if sort == "hot":
|
||||||
posts = sorted(posts.all(), key=lambda x: x.hotscore, reverse=True)
|
posts = sorted(posts.all(), key=lambda x: x.hotscore, reverse=True)
|
||||||
|
|
Loading…
Reference in New Issue