Skip to content

Commit

Permalink
Fix exception in event age check
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-vant committed Nov 18, 2019
1 parent 53a951e commit 8d02155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rse/controllers/health_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8d02155

Please sign in to comment.