jesus christ im an idiot
This commit is contained in:
parent
f06fee1414
commit
87e4bb59df
4 changed files with 13 additions and 0 deletions
|
@ -40,6 +40,8 @@ def marsey_list():
|
|||
def terms(v):
|
||||
if not v and not request.path.startswith('/logged_out'): return redirect(f"{SITE_FULL}/logged_out{request.full_path}")
|
||||
|
||||
if v and request.path.startswith('/logged_out'): v = None
|
||||
|
||||
return render_template("terms.html", v=v)
|
||||
|
||||
@app.get('/sidebar')
|
||||
|
@ -48,6 +50,8 @@ def terms(v):
|
|||
def sidebar(v):
|
||||
if not v and not request.path.startswith('/logged_out'): return redirect(f"{SITE_FULL}/logged_out{request.full_path}")
|
||||
|
||||
if v and request.path.startswith('/logged_out'): v = None
|
||||
|
||||
return render_template('sidebar.html', v=v)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue