This commit is contained in:
Aevann1 2022-01-14 02:14:55 +02:00
parent 2a785a90f3
commit b60ce2f2cb
2 changed files with 7 additions and 7 deletions

View file

@ -36,12 +36,7 @@ def terms(v):
@app.get('/sidebar')
@auth_required
def sidebar(v):
if not path.exists(f'files/templates/sidebar_{site_name}.html'): abort(404)
with open(f'files/templates/sidebar_{site_name}.html', 'r') as f: sidebar = f.read()
return render_template('sidebar.html', sidebar=sidebar, v=v)
return render_template('sidebar.html', v=v)
@app.get("/stats")