forked from rDrama/rDrama
1
0
Fork 0

testing on prod

master
Aevann1 2022-07-23 09:17:38 +02:00
parent 8547e6b71d
commit de011ef7b1
1 changed files with 6 additions and 2 deletions

View File

@ -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()