From f0a53e8304989ea6708de7fc20fc422bf86f2ddc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 18 Feb 2022 11:12:37 +0200 Subject: [PATCH] bcv --- files/routes/front.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index bccba7b60d..86acd34b6f 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -269,13 +269,14 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false" posts = g.db.query(Submission) if sub: posts = posts.filter_by(sub=sub.name) - elif SITE_NAME == '2Much4You': posts = posts.filter(Submission.sub.in_(toomuch_subs)) - elif SITE_NAME == 'Ruqqus': - posts = posts.filter(Submission.sub != None) - if v and v.all_blocks: posts = posts.filter(Submission.sub.notin_(v.all_blocks)) - elif SITE_NAME == 'PCM': - if v and v.all_blocks: posts = posts.filter(Submission.sub.notin_(v.all_blocks)) - else: posts = posts.filter_by(sub=None) + elif SITE != 'devrama.xyz': + elif SITE_NAME == '2Much4You': posts = posts.filter(Submission.sub.in_(toomuch_subs)) + elif SITE_NAME == 'Ruqqus': + posts = posts.filter(Submission.sub != None) + if v and v.all_blocks: posts = posts.filter(Submission.sub.notin_(v.all_blocks)) + elif SITE_NAME == 'PCM': + 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 lt: posts = posts.filter(Submission.created_utc < lt)