mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-10 17:17:42 +03:00
Fix ruff formatting issues in activity_manager.py
Co-authored-by: Teagan42 <2989925+Teagan42@users.noreply.github.com>
This commit is contained in:
parent
bb534d81f5
commit
2344eea392
@ -73,15 +73,13 @@ class CameraActivityManager:
|
||||
# This ensures each unique object is only counted once even if it appears
|
||||
# multiple times (e.g., with custom classifications)
|
||||
zone_objects_by_id = {
|
||||
obj["id"]: obj
|
||||
for obj in all_objects
|
||||
if zone in obj["current_zones"]
|
||||
obj["id"]: obj for obj in all_objects if zone in obj["current_zones"]
|
||||
}
|
||||
all_zone_objects = Counter(
|
||||
obj["label"].replace("-verified", "")
|
||||
for obj in zone_objects_by_id.values()
|
||||
)
|
||||
|
||||
|
||||
# Same deduplication for active objects
|
||||
active_zone_objects_by_id = {
|
||||
obj["id"]: obj
|
||||
@ -133,7 +131,7 @@ class CameraActivityManager:
|
||||
all_objects = Counter(
|
||||
obj["label"].replace("-verified", "") for obj in objects_by_id.values()
|
||||
)
|
||||
|
||||
|
||||
# Same deduplication for active objects
|
||||
active_objects_by_id = {
|
||||
obj["id"]: obj for obj in new_activity if not obj["stationary"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user