feat: Add link to stats from home page
All checks were successful
Build Docker / Build Image (push) Successful in 32s
All checks were successful
Build Docker / Build Image (push) Successful in 32s
This commit is contained in:
7
main.py
7
main.py
@@ -148,13 +148,6 @@ def stats():
|
||||
|
||||
@app.route('/<path:path>')
|
||||
def catch_all(path):
|
||||
# # If file exists, load it
|
||||
# if os.path.isfile('templates/' + path):
|
||||
# return render_template(path)
|
||||
|
||||
# # Try with .html
|
||||
# if os.path.isfile('templates/' + path + '.html'):
|
||||
# return render_template(path + '.html')
|
||||
return redirect('/?r='+path)
|
||||
|
||||
# 404 catch all
|
||||
|
||||
Reference in New Issue
Block a user