This commit is contained in:
slice 2018-07-19 14:43:01 -07:00
commit a0b6c8f01d
No known key found for this signature in database
GPG Key ID: 1508C19D7436A26D
1 changed files with 2 additions and 2 deletions

View File

@ -175,8 +175,8 @@ async def patch_incident(request, incident_id):
incident = request.json
manager = request.app.manager
if 'end_timestamp' not in incident and not incident['ongoing']:
incident['end_timestamp'] = _time()
if 'end_date' not in incident and not incident['ongoing']:
incident['end_date'] = _time()
orig = fetch_dict(manager.conn, incident_id)