aboutsummaryrefslogtreecommitdiff
path: root/scripts/authentication/group.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/authentication/group.py')
-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", ""),