From 8d02155abc9ff9b4c7c2cddbdeec5576a64d1725 Mon Sep 17 00:00:00 2001 From: Andrew Vant Date: Mon, 18 Nov 2019 12:29:57 -0500 Subject: [PATCH] Fix exception in event age check --- src/rse/controllers/health_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rse/controllers/health_controller.py b/src/rse/controllers/health_controller.py index dd20c29..e6be097 100644 --- a/src/rse/controllers/health_controller.py +++ b/src/rse/controllers/health_controller.py @@ -61,7 +61,7 @@ def _event_range(self): if event: event['data'] = json.loads(event['data']) event['name'] = event['data'].get('Event', None) - event['age'] = datetime.utcnow() - event['created_at'].seconds + event['age'] = (datetime.utcnow() - event['created_at']).seconds out[evt] = event return out