From b05e2ab6e4bb4bb4fd60a1ae0a9fa79cce50ea5f Mon Sep 17 00:00:00 2001 From: "Sean R. Abraham" Date: Thu, 27 Feb 2025 11:56:05 -0500 Subject: [PATCH] set a lastModified time on incident creation this is a necessary followup to https://github.com/burningmantech/ranger-ims-server/pull/1616 prior to this PR, new incident creation would fail on converting a None datetime --- src/ims/application/_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ims/application/_api.py b/src/ims/application/_api.py index 759f0d14e..d0a6ce97e 100644 --- a/src/ims/application/_api.py +++ b/src/ims/application/_api.py @@ -424,6 +424,7 @@ async def newIncidentResource( json[IncidentJSONKey.number.value] = 0 json[IncidentJSONKey.created.value] = jsonNow + json[IncidentJSONKey.lastModified.value] = jsonNow # If not provided, set JSON event, state to new, priority to normal