From c740b4affbe6ff24e15766314ad790e1e2d95810 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 13 Dec 2018 00:54:13 +0800 Subject: [PATCH] Update config.py --- class/core/config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/class/core/config.py b/class/core/config.py index 106dee15a..a2efe6b4d 100644 --- a/class/core/config.py +++ b/class/core/config.py @@ -24,11 +24,14 @@ class config: def makeApp(self, name): app = Flask(name) - app.debug = True - app.config.version = self.__version + str(time.time()) + app.config.version = self.__version app.config['SECRET_KEY'] = os.urandom(24) app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=7) + + # app.debug = True + # app.config.version = self.__version + str(time.time()) + __app = app self.initDB()