Sort event summary by day

This commit is contained in:
Nicolas Mowen 2025-11-06 06:17:45 -07:00
parent 91867b7294
commit d7cda83f59

View File

@ -912,7 +912,7 @@ def events_summary(
"count": int(g.count or 0), "count": int(g.count or 0),
} }
return JSONResponse(content=list(grouped.values())) return JSONResponse(content=sorted(grouped.values(), key=lambda x: x["day"]))
@router.get( @router.get(