aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/redis_tools.py
diff options
context:
space:
mode:
authorBonfaceKilz2020-09-17 16:07:01 +0300
committerBonfaceKilz2020-09-17 16:07:01 +0300
commit81f6c22573db69e8ab0d2b831fc659147a839bbd (patch)
tree59cea49c4e8ed05dab9a26b6835492b1ebe85d17 /wqflask/utility/redis_tools.py
parent90475fed0b2d1bd192a641bd417f6dfef79653d0 (diff)
parent8da6a70916d2cf18e476ab0adf47f802c481205d (diff)
downloadgenenetwork2-81f6c22573db69e8ab0d2b831fc659147a839bbd.tar.gz
Merge branch 'testing' into build/python3-migration
Diffstat (limited to 'wqflask/utility/redis_tools.py')
-rw-r--r--wqflask/utility/redis_tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/redis_tools.py b/wqflask/utility/redis_tools.py
index 13ac5cfe..4aba2b70 100644
--- a/wqflask/utility/redis_tools.py
+++ b/wqflask/utility/redis_tools.py
@@ -286,7 +286,7 @@ def add_resource(resource_info, update=True):
else:
resource_id = hmac.hmac_creation('{}:{}'.format(str(resource_info['type']), str(resource_info['data']['dataset'])))
- if not Redis.hexists("resources", resource_id):
+ if update or not Redis.hexists("resources", resource_id):
Redis.hset("resources", resource_id, json.dumps(resource_info))
return resource_info