feat: Use correct a link

This commit is contained in:
Nathan Woodburn 2025-03-07 15:12:33 +11:00
parent 3bee713b9a
commit 30f61f1505
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

12
main.py
View File

@ -1588,8 +1588,6 @@ def try_path(path):
if not account_module.hsdConnected():
return redirect("/login?message=Node not connected")
if os.path.isfile("templates/" + path + ".html"):
return render_template(path + ".html")
else:
@ -1604,7 +1602,9 @@ def page_not_found(e):
if __name__ == '__main__':
# Check to see if --debug is in the command line arguments
if "--debug" in sys.argv:
app.run(debug=True,host='0.0.0.0')
else:
app.run(host='0.0.0.0')
debug = "--debug" in sys.argv
port = 5000
if "--port" in sys.argv:
port = int(sys.argv[sys.argv.index("--port")+1])
app.run(debug=True,host='0.0.0.0',port=port)