dd
This commit is contained in:
parent
ba1ce0e2b1
commit
06c55ac461
1 changed files with 3 additions and 0 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue