aboutsummaryrefslogtreecommitdiff
path: root/scripts/authentication
diff options
context:
space:
mode:
authorBonfaceKilz2021-10-06 21:23:08 +0300
committerBonfaceKilz2021-10-06 21:55:27 +0300
commit40dddc1a78a7808b480d26594ced689cdcc08c24 (patch)
treeeb0c24962716c69dad9acb78aaf616490b73feba /scripts/authentication
parentc1b23a1b01071c252ddae6dbea14500e4c248d84 (diff)
downloadgenenetwork2-40dddc1a78a7808b480d26594ced689cdcc08c24.tar.gz
scripts: group: Fix indentation
Diffstat (limited to 'scripts/authentication')
-rw-r--r--scripts/authentication/group.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/authentication/group.py b/scripts/authentication/group.py
index 1919d9db..7e73be15 100644
--- a/scripts/authentication/group.py
+++ b/scripts/authentication/group.py
@@ -131,10 +131,10 @@ if __name__ == "__main__":
members=members,
admins=admins)
- updated_data = json.loads(data["value"])
- updated_data["created_timestamp"] = datetime.datetime.utcnow().strftime('%b %d %Y %I:%M%p')
- data["value"] = json.dumps(updated_data)
if not REDIS_CONN.hget("groups", data.get("field")):
+ updated_data = json.loads(data["value"])
+ updated_data["created_timestamp"] = datetime.datetime.utcnow().strftime('%b %d %Y %I:%M%p')
+ data["value"] = json.dumps(updated_data)
created_p = REDIS_CONN.hset(data.get("key", ""),
data.get("field", ""),