unnest /api/incidents/current

This commit is contained in:
slice 2018-07-18 12:40:39 -07:00
parent 194129a5f2
commit 11df05b998
No known key found for this signature in database
GPG Key ID: 1508C19D7436A26D
1 changed files with 1 additions and 4 deletions

View File

@ -110,10 +110,7 @@ async def get_current_incident(request):
row = None
drow = {}
return response.json({
'all_good': not drow.get('ongoing'),
'current_incident': None if drow == {} else drow
})
return response.json(None if drow == {} else drow)
@bp.get('/api/incidents/<page:int>')