aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance
diff options
context:
space:
mode:
authorzsloan2020-07-06 14:47:04 -0500
committerzsloan2020-07-06 14:47:04 -0500
commit0a0d733af4b6c61c381a1c4ec9fa162182a057e9 (patch)
tree2fb77bcbce7650af08b647fc3089e89d596169ba /wqflask/maintenance
parentaa06c83ecd4d36878ac0aadd75ab2bd461f44344 (diff)
downloadgenenetwork2-0a0d733af4b6c61c381a1c4ec9fa162182a057e9.tar.gz
Fixed some of the logic with how traits are authenticated to avoid situation where a trait is authenticated twice
Diffstat (limited to 'wqflask/maintenance')
-rw-r--r--wqflask/maintenance/set_resource_defaults.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/maintenance/set_resource_defaults.py b/wqflask/maintenance/set_resource_defaults.py
index ddb3b17b..54fd8e7e 100644
--- a/wqflask/maintenance/set_resource_defaults.py
+++ b/wqflask/maintenance/set_resource_defaults.py
@@ -77,7 +77,7 @@ def insert_probeset_resources(default_owner_id):
"admin": "not-admin"}
resource_ob['group_masks'] = {}
- add_resource(resource_ob)
+ add_resource(resource_ob, update=False)
def insert_publish_resources(default_owner_id):
current_resources = Redis.hgetall("resources")
@@ -108,7 +108,7 @@ def insert_publish_resources(default_owner_id):
resource_ob['group_masks'] = {}
- add_resource(resource_ob)
+ add_resource(resource_ob, update=False)
else:
continue
@@ -139,7 +139,7 @@ def insert_geno_resources(default_owner_id):
"admin": "not-admin"}
resource_ob['group_masks'] = {}
- add_resource(resource_ob)
+ add_resource(resource_ob, update=False)
def insert_resources(default_owner_id):
current_resources = get_resources()