From f62f3af483c49652a3ed5bb8885164ca9a588957 Mon Sep 17 00:00:00 2001 From: dongresource Date: Sun, 24 Dec 2023 03:36:33 +0100 Subject: [PATCH] Revert "Autorun Flask app" This reverts commit e0e0b3c5e35fa100b48766804cfbcb06aa0d90c9. Flask applications are not supposed to be run this way. We run the endpoints with uwsgi in prod or with the flask program for debugging. https://flask.palletsprojects.com/en/3.0.x/api/#flask.Flask.run --- rankendpoint.py | 1 - 1 file changed, 1 deletion(-) diff --git a/rankendpoint.py b/rankendpoint.py index 523c47f..0e5fd25 100644 --- a/rankendpoint.py +++ b/rankendpoint.py @@ -15,7 +15,6 @@ def main(db_path): except Exception as ex: print(ex) sys.exit() - app.run() #db.set_trace_callback(print)