Skip to content
Permalink
Browse files

Ensure modifiedat is jsonable

  • Loading branch information...
pwnbus committed Sep 4, 2019
1 parent 94885e9 commit e6125a63794f0a9382d163e7390a18d60b74933f
Showing with 2 additions and 0 deletions.
  1. +2 −0 rest/index.py
@@ -257,6 +257,8 @@ def index():
for mongodb_alert in mongodb_alerts:
if mongodb_alert['last_run_at']:
mongodb_alert['last_run_at'] = mongodb_alert['last_run_at'].isoformat()
if 'modifiedat' in mongodb_alert:
mongodb_alert['modifiedat'] = mongodb_alert['modifiedat'].isoformat()
alert_schedules_dict[mongodb_alert['name']] = mongodb_alert

response.body = json.dumps(alert_schedules_dict)

0 comments on commit e6125a6

Please sign in to comment.
You can’t perform that action at this time.