diff options
-rw-r--r-- | wqflask/wqflask/__init__.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py index 274c3d82..eeece241 100644 --- a/wqflask/wqflask/__init__.py +++ b/wqflask/wqflask/__init__.py @@ -1,4 +1,5 @@ -import sys +"""Entry point for flask app""" +# pylint: disable=C0413,E0611 import time import jinja2 @@ -6,10 +7,6 @@ from flask import g from flask import Flask from utility import formatting -import logging -logger = logging.getLogger(__name__ ) -logging.basicConfig(level=logging.INFO) - app = Flask(__name__) # See http://flask.pocoo.org/docs/config/#configuring-from-files @@ -22,8 +19,8 @@ app.jinja_env.globals.update( @app.before_request def before_request(): - g.request_start_time = time.time() - g.request_time = lambda: "%.5fs" % (time.time() - g.request_start_time) + g.request_start_time = time.time() + g.request_time = lambda: "%.5fs" % (time.time() - g.request_start_time) from wqflask.api import router |