diff options
author | BonfaceKilz | 2021-10-06 21:24:16 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-10-06 21:55:27 +0300 |
commit | 67222a6cb11995eb5a4af58f63cc9385ccfb9226 (patch) | |
tree | 93f11e3705f15b5f584089fcf0aae07ea999aa28 /scripts | |
parent | 40dddc1a78a7808b480d26594ced689cdcc08c24 (diff) | |
download | genenetwork2-67222a6cb11995eb5a4af58f63cc9385ccfb9226.tar.gz |
scripts: group: Break up long line
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/authentication/group.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/authentication/group.py b/scripts/authentication/group.py index 7e73be15..ed17f260 100644 --- a/scripts/authentication/group.py +++ b/scripts/authentication/group.py @@ -133,7 +133,8 @@ if __name__ == "__main__": 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') + timestamp = datetime.datetime.utcnow().strftime('%b %d %Y %I:%M%p') + updated_data["created_timestamp"] = timestamp data["value"] = json.dumps(updated_data) created_p = REDIS_CONN.hset(data.get("key", ""), |