diff options
author | BonfaceKilz | 2021-10-06 21:23:08 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-10-06 21:55:27 +0300 |
commit | 40dddc1a78a7808b480d26594ced689cdcc08c24 (patch) | |
tree | eb0c24962716c69dad9acb78aaf616490b73feba | |
parent | c1b23a1b01071c252ddae6dbea14500e4c248d84 (diff) | |
download | genenetwork2-40dddc1a78a7808b480d26594ced689cdcc08c24.tar.gz |
scripts: group: Fix indentation
-rw-r--r-- | scripts/authentication/group.py | 6 |
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", ""), |