From de011ef7b1bb5a654be5acc2b7606000723e5a7a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 23 Jul 2022 09:17:38 +0200 Subject: [PATCH] testing on prod --- files/routes/front.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index e276bc22b..47a81601b 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -25,8 +25,12 @@ def front_all(v, sub=None, subdomain=None): return redirect(f"/logged_out{r}") if v and v.is_banned and not v.unban_utc: return redirect('https://deuxrama.net') - - if v and request.path.startswith('/logged_out'): return redirect(request.full_path.replace('/logged_out','')) + + if v and request.path.startswith('/logged_out'): + if v.id == AEVANN_ID: + r = request.full_path.replace('/logged_out','') + print(r) + return redirect(r) if sub: sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none()