diff options
author | Frederick Muriuki Muriithi | 2022-09-09 05:54:55 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-09-09 05:54:55 +0300 |
commit | 209a41444682def27bcdb626e77c27262539b5f0 (patch) | |
tree | 18125ecaee93f708f734e460862618302365358f | |
parent | 01a82248382c556aaf167ee9c63e2a98ff57d214 (diff) | |
download | genenetwork2-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.
-rw-r--r-- | wqflask/wqflask/views.py | 2 |
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: |