Fix setting manual event update time (#11290)

This commit is contained in:
Nicolas Mowen 2024-05-08 06:34:22 -06:00 committed by GitHub
parent ff2948a76b
commit e7ba556919
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -511,7 +511,7 @@ class ReviewSegmentMaintainer(threading.Thread):
manual_info["label"]
)
# temporarily make it so this event can not end
self.active_review_segments[camera] = sys.maxsize
self.active_review_segments[camera].last_update = sys.maxsize
elif manual_info["state"] == ManualEventState.complete:
self.active_review_segments[camera].last_update = manual_info[
"end_time"