bcv
This commit is contained in:
parent
b573fee01f
commit
a64528fc59
1 changed files with 8 additions and 7 deletions
|
@ -269,13 +269,14 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false"
|
||||||
posts = g.db.query(Submission)
|
posts = g.db.query(Submission)
|
||||||
|
|
||||||
if sub: posts = posts.filter_by(sub=sub.name)
|
if sub: posts = posts.filter_by(sub=sub.name)
|
||||||
elif SITE_NAME == '2Much4You': posts = posts.filter(Submission.sub.in_(toomuch_subs))
|
elif SITE != 'devrama.xyz':
|
||||||
elif SITE_NAME == 'Ruqqus':
|
elif SITE_NAME == '2Much4You': posts = posts.filter(Submission.sub.in_(toomuch_subs))
|
||||||
posts = posts.filter(Submission.sub != None)
|
elif SITE_NAME == 'Ruqqus':
|
||||||
if v and v.all_blocks: posts = posts.filter(Submission.sub.notin_(v.all_blocks))
|
posts = posts.filter(Submission.sub != None)
|
||||||
elif SITE_NAME == 'PCM':
|
if v and v.all_blocks: posts = posts.filter(Submission.sub.notin_(v.all_blocks))
|
||||||
if v and v.all_blocks: posts = posts.filter(Submission.sub.notin_(v.all_blocks))
|
elif SITE_NAME == 'PCM':
|
||||||
else: posts = posts.filter_by(sub=None)
|
if v and v.all_blocks: posts = posts.filter(Submission.sub.notin_(v.all_blocks))
|
||||||
|
else: posts = posts.filter_by(sub=None)
|
||||||
|
|
||||||
if gt: posts = posts.filter(Submission.created_utc > gt)
|
if gt: posts = posts.filter(Submission.created_utc > gt)
|
||||||
if lt: posts = posts.filter(Submission.created_utc < lt)
|
if lt: posts = posts.filter(Submission.created_utc < lt)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue