diff options
author | BonfaceKilz | 2020-09-17 16:07:01 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-09-17 16:07:01 +0300 |
commit | 81f6c22573db69e8ab0d2b831fc659147a839bbd (patch) | |
tree | 59cea49c4e8ed05dab9a26b6835492b1ebe85d17 /wqflask/utility/redis_tools.py | |
parent | 90475fed0b2d1bd192a641bd417f6dfef79653d0 (diff) | |
parent | 8da6a70916d2cf18e476ab0adf47f802c481205d (diff) | |
download | genenetwork2-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.py | 2 |
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 |