From 30f61f1505ac70b99e83bc257e4e422b2ef9e29d Mon Sep 17 00:00:00 2001 From: Nathan Woodburn <github@nathan.woodburn.au> Date: Fri, 7 Mar 2025 15:12:33 +1100 Subject: [PATCH] feat: Use correct a link --- main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 0d70baf..ab829f8 100644 --- a/main.py +++ b/main.py @@ -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') \ No newline at end of file + 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) + \ No newline at end of file