Explorar o código

ensure stationary interval is greater than 0

Blake Blackshear %!s(int64=3) %!d(string=hai) anos
pai
achega
c50e9d48bf
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      frigate/config.py

+ 2 - 1
frigate/config.py

@@ -154,7 +154,8 @@ class DetectConfig(FrigateBaseModel):
         title="Maximum number of frames the object can dissapear before detection ends."
     )
     stationary_interval: Optional[int] = Field(
-        title="Frame interval for checking stationary objects."
+        title="Frame interval for checking stationary objects.",
+        ge=1,
     )