mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-20 04:23:01 +03:00
Remove source_type from API
This commit is contained in:
Vendored
+544
-551
File diff suppressed because it is too large
Load Diff
@@ -29,7 +29,6 @@ class EventsDescriptionBody(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
class EventsCreateBody(BaseModel):
|
class EventsCreateBody(BaseModel):
|
||||||
source_type: Optional[str] = "api"
|
|
||||||
sub_label: Optional[str] = None
|
sub_label: Optional[str] = None
|
||||||
score: Optional[float] = 0
|
score: Optional[float] = 0
|
||||||
duration: Optional[int] = 30
|
duration: Optional[int] = 30
|
||||||
|
|||||||
@@ -1620,7 +1620,7 @@ def create_event(
|
|||||||
body.score,
|
body.score,
|
||||||
body.sub_label,
|
body.sub_label,
|
||||||
body.duration,
|
body.duration,
|
||||||
body.source_type,
|
"api",
|
||||||
body.draw,
|
body.draw,
|
||||||
),
|
),
|
||||||
EventMetadataTypeEnum.manual_event_create.value,
|
EventMetadataTypeEnum.manual_event_create.value,
|
||||||
|
|||||||
Reference in New Issue
Block a user