hzusa
This commit is contained in:
parent
b41d9322f3
commit
f4e80dcf0d
1 changed files with 2 additions and 2 deletions
|
@ -162,8 +162,6 @@ 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":
|
||||
|
@ -184,6 +182,8 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
|||
else:
|
||||
abort(400)
|
||||
|
||||
print('fartbinn' in [x.author.username for x in posts])
|
||||
|
||||
firstrange = 50 * (page - 1)
|
||||
secondrange = firstrange+51
|
||||
posts = posts[firstrange:secondrange]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue