diff options
author | Frederick Muriuki Muriithi | 2023-10-24 05:04:32 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-10-24 05:04:32 +0300 |
commit | a57f96724a0f9626f1aaea7a26eeb0ddc800269e (patch) | |
tree | c9ba303c37dd1a78b5785566a8afb933415f19dd /gn3 | |
parent | 7a63d1da114a51b35f6db46bef4f2b856285264f (diff) | |
download | genenetwork3-a57f96724a0f9626f1aaea7a26eeb0ddc800269e.tar.gz |
case-attribute: use isoformat() for datetime objects.
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/case_attributes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/case_attributes.py b/gn3/case_attributes.py index 661a399..c964553 100644 --- a/gn3/case_attributes.py +++ b/gn3/case_attributes.py @@ -496,7 +496,7 @@ def view_diff(inbredset_id: int, diff_id: int) -> Response: "json_diff_data": { **json_diff_data, "db_id": diff["id"], - "created": diff["time_stamp"], + "created": diff["time_stamp"].isoformat(), "user_id": uuid.UUID(diff["editor"]) } }) |