diff options
author | zsloan | 2018-04-09 18:13:59 +0000 |
---|---|---|
committer | zsloan | 2018-04-09 18:13:59 +0000 |
commit | bd6d36ddb366a3ee427a0c237ebf8f672606ff19 (patch) | |
tree | 761e95485b546e2f988503f40c8cb7bd432a4ce9 /wqflask/utility/after.py | |
parent | 1cf4b598dd986760627eef4144c0445679c97866 (diff) | |
download | genenetwork2-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.py | 8 |
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 |