mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-11 09:37:37 +03:00
Sort event summary by day
This commit is contained in:
parent
91867b7294
commit
d7cda83f59
@ -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(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user