Explorar el Código

invert active_count logic

Blake Blackshear hace 3 años
padre
commit
329e5f8f91
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      frigate/record.py

+ 1 - 1
frigate/record.py

@@ -230,7 +230,7 @@ class RecordingMaintainer(threading.Thread):
                 [
                     o
                     for o in frame[1]
-                    if not o["false_positive"] and o["motionless_count"] > 0
+                    if not o["false_positive"] and o["motionless_count"] == 0
                 ]
             )