aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/after.py
diff options
context:
space:
mode:
authorzsloan2018-04-09 18:13:59 +0000
committerzsloan2018-04-09 18:13:59 +0000
commitbd6d36ddb366a3ee427a0c237ebf8f672606ff19 (patch)
tree761e95485b546e2f988503f40c8cb7bd432a4ce9 /wqflask/utility/after.py
parent1cf4b598dd986760627eef4144c0445679c97866 (diff)
downloadgenenetwork2-bd6d36ddb366a3ee427a0c237ebf8f672606ff19.tar.gz
Fixed issue that caused and error for certain types of mapping due to variable not being initialized
Removed a bunch of unused statistical functions from Plot.py and webqtlUtil.py. I figure that if we ever need them again, there's probably some third party library that includes them. Also removed unused file AJAX_table.py and other unused code from several other files
Diffstat (limited to 'wqflask/utility/after.py')
-rw-r--r--wqflask/utility/after.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/wqflask/utility/after.py b/wqflask/utility/after.py
index a3bb85e9..b628a0a4 100644
--- a/wqflask/utility/after.py
+++ b/wqflask/utility/after.py
@@ -13,10 +13,4 @@ def after_this_request(f):
if not hasattr(g, 'after_request_callbacks'):
g.after_request_callbacks = []
g.after_request_callbacks.append(f)
- return f
-
-@app.after_request
-def call_after_request_callbacks(response):
- for callback in getattr(g, 'after_request_callbacks', ()):
- callback(response)
- return response
+ return f \ No newline at end of file