aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2020-11-03 17:27:15 +0300
committerBonfaceKilz2020-11-03 17:27:15 +0300
commitd6c18c29ed9ccfadc1798c8a7c460faa428d1d5b (patch)
tree73698526ddf7d16ee484f34a15888bad42df1c96
parentca26d98ff906163580adbc1e9c00122f9da245b7 (diff)
downloadgenenetwork2-d6c18c29ed9ccfadc1798c8a7c460faa428d1d5b.tar.gz
Apply PEP-8 to file
* wqflask/wqflask/__init__.py: Remove unused import and variables. Also add module docstring and pylint errors to ignore. (before_request): Use correct spacing.
-rw-r--r--wqflask/wqflask/__init__.py11
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