incidents: fix bug
This commit is contained in:
parent
4a0ed13180
commit
6c94b50ba0
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue