Add in_progress parameter to /api/events to filter the results. (#5013)

* Add in_progress parameter to /api/events to filter the results.

* Change in_progress to default to no filtering, 0 means no in progress, 1 means only in progress.

* Fix code format with black.

* Clear blank line.
This commit is contained in:
sergeknystautas
2023-01-11 15:22:39 -08:00
committed by GitHub
parent cb0c5c2587
commit 731db8fb8f
2 changed files with 5 additions and 0 deletions

View File

@@ -166,6 +166,7 @@ Events from the database. Accepts the following query string parameters:
| `has_snapshot` | int | Filter to events that have snapshots (0 or 1) |
| `has_clip` | int | Filter to events that have clips (0 or 1) |
| `include_thumbnails` | int | Include thumbnails in the response (0 or 1) |
| `in_progress` | int | Limit to events in progress (0 or 1) |
### `GET /api/events/summary`