This commit is contained in:
Aevann1 2021-08-08 01:03:15 +02:00
parent baa1853f95
commit 6da2e26bfe
9 changed files with 14 additions and 14 deletions

View file

@ -144,7 +144,7 @@ def frontlist(v=None, sort="hot", page=1,t="all", ids_only=True, filter_words=''
secondrange = firstrange+1000
posts = posts[firstrange:secondrange]
if v and v.hidevotedon: posts = [x for x in posts if x._voted == 0]
if v and v.hidevotedon: posts = [x for x in posts if x.voted == 0]
if page == 1: posts = g.db.query(Submission).filter_by(stickied=True).all() + posts