fds
This commit is contained in:
parent
ac8e2dff91
commit
1a92633556
1 changed files with 4 additions and 0 deletions
|
@ -287,6 +287,10 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false"
|
|||
|
||||
posts = g.db.query(Submission)
|
||||
|
||||
if v and v.hidevotedon:
|
||||
voted = [x[0] for x in g.db.query(Vote.submission_id).filter_by(user_id=v.id).all()]
|
||||
posts = posts.filter(Submission.id.notin_(voted))
|
||||
|
||||
if sub:
|
||||
posts = posts.filter_by(sub=sub.name)
|
||||
elif not v:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue