From 209a41444682def27bcdb626e77c27262539b5f0 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 9 Sep 2022 05:54:55 +0300 Subject: 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. --- wqflask/wqflask/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3