From dcd89526045a556b219df1840372f29960f1e60e Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Tue, 23 Aug 2022 22:03:36 +0000 Subject: [PATCH] server: Disable DB debug mode by default --- server/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/app.py b/server/app.py index 6d501e2..c47feb1 100644 --- a/server/app.py +++ b/server/app.py @@ -68,6 +68,8 @@ logging.basicConfig(format="%(asctime)s === %(message)s", level=logging.DEBUG) #### +DEBUG_DATABASE = False + flask_app = Flask(__name__) flask_app.config.update( dict( @@ -78,6 +80,8 @@ flask_app.config.update( filename="./db.sqlite", create_db=True, ) + if DEBUG_DATABASE + else dict() ) )