From 6c94b50ba0c7c3c6c84bb4e876abfeaf20bcecd5 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Thu, 19 Jul 2018 18:42:34 -0300 Subject: [PATCH] incidents: fix bug --- elstat/blueprints/incidents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elstat/blueprints/incidents.py b/elstat/blueprints/incidents.py index 3f3d126..ee7e1aa 100644 --- a/elstat/blueprints/incidents.py +++ b/elstat/blueprints/incidents.py @@ -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)