Преглед на файлове

invert active_count logic

Blake Blackshear преди 3 години
родител
ревизия
329e5f8f91
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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
                 ]
             )