mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-05 20:04:51 +01:00
* new body param * use new body param in endpoint * explicitly use new param in frontend endpoint * use reviewsegment as type instead of list of strings * add toggle function to mark as unreviewed when all selected are reviewed * i18n * fix tests
9 lines
328 B
Python
9 lines
328 B
Python
from pydantic import BaseModel, conlist, constr
|
|
|
|
|
|
class ReviewModifyMultipleBody(BaseModel):
|
|
# List of string with at least one element and each element with at least one char
|
|
ids: conlist(constr(min_length=1), min_length=1)
|
|
# Whether to mark items as reviewed (True) or unreviewed (False)
|
|
reviewed: bool = True
|