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()