aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-09-09 05:54:55 +0300
committerFrederick Muriuki Muriithi2022-09-09 05:54:55 +0300
commit209a41444682def27bcdb626e77c27262539b5f0 (patch)
tree18125ecaee93f708f734e460862618302365358f /wqflask
parent01a82248382c556aaf167ee9c63e2a98ff57d214 (diff)
downloadgenenetwork2-209a41444682def27bcdb626e77c27262539b5f0.tar.gz
Comment out pickling to avoid error
Pickling was failing with "TypeError: cannot pickle 'Connection' object" This commit avoids the error by temporarily commenting out the line to prevent the pickling to actually test the working of the system on the CI/CD server.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 174913e4..223b8507 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -182,7 +182,7 @@ def search_page():
result = SearchResultPage(request.args).__dict__
valid_search = result['search_term_exists']
if USE_REDIS and valid_search:
- Redis.set(key, pickle.dumps(result, pickle.HIGHEST_PROTOCOL))
+ # Redis.set(key, pickle.dumps(result, pickle.HIGHEST_PROTOCOL))
Redis.expire(key, 60 * 60)
if valid_search: