Accept all but true

This commit is contained in:
Nick Mowen 2023-10-17 09:18:19 -06:00
parent bb6863cb30
commit d7b8652b69

View File

@ -48,7 +48,7 @@ def get_camera_regions_grid(
events = (
Event.select(Event.id)
.where(Event.camera == name)
.where(Event.false_positive == None)
.where((Event.false_positive == None) | (Event.false_positive == False))
.where(Event.start_time > last_update)
)
valid_event_ids = [e["id"] for e in events.dicts()]