bb
This commit is contained in:
parent
2a785a90f3
commit
b60ce2f2cb
2 changed files with 7 additions and 7 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue