From 5451d8d1b3c548b08739323b365ce5f3ef33a930 Mon Sep 17 00:00:00 2001 From: deflax Date: Fri, 22 Mar 2024 18:21:53 +0200 Subject: [PATCH] define create_app fn --- src/forest/forest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forest/forest.py b/src/forest/forest.py index 1c9f35a..440f003 100644 --- a/src/forest/forest.py +++ b/src/forest/forest.py @@ -104,5 +104,5 @@ def service_unavailable(e): def handle_csrf_error(e): return render_template('errors/csrf_error.html', reason=e.description), 400 -if __name__ == '__main__': - app.run() +def create_app(): + return app \ No newline at end of file