incidents: fix bug

This commit is contained in:
Luna Mendes 2018-07-19 18:42:34 -03:00
parent 4a0ed13180
commit 6c94b50ba0

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)