From e34e46e19db3c44e62c0ebdd3db401f9d96fc1cb Mon Sep 17 00:00:00 2001 From: "georg.sinn-schirwitz" Date: Sat, 30 Aug 2025 11:44:16 +0200 Subject: [PATCH] moving main to init adding simpler main function --- web/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/app.py b/web/app.py index c19dc6d..3dcdcae 100644 --- a/web/app.py +++ b/web/app.py @@ -440,7 +440,7 @@ def admin_taxonomy(): return render_template('admin/taxonomy.html', title='Taxonomy', regions=regions, keywords=keywords) -def main(): +def init(): """Main function to run the Flask app.""" # Ensure DB is initialized db_init() @@ -452,5 +452,9 @@ def main(): app.run(debug=True, host='127.0.0.1', port=5000) +def main(): + app.run() + + if __name__ == "__main__": main()