Formatting

This commit is contained in:
Nick Mowen 2023-04-20 16:03:35 -06:00
parent 922d327ebf
commit f2d8298337
2 changed files with 7 additions and 5 deletions

View File

@ -291,7 +291,9 @@ class FrigateApp:
logger.info(f"Capture process started for {name}: {capture_process.pid}")
def start_timeline_processor(self) -> None:
self.timeline_processor = TimelineProcessor(self.timeline_queue, self.stop_event)
self.timeline_processor = TimelineProcessor(
self.timeline_queue, self.stop_event
)
self.timeline_processor.start()
def start_event_processor(self) -> None:

View File

@ -32,13 +32,13 @@ class Event(Model): # type: ignore[misc]
plus_id = CharField(max_length=30)
class Timeline(Model): # type: ignore[misc]
class Timeline(Model): # type: ignore[misc]
timestamp = DateTimeField()
camera = CharField(index=True, max_length=20)
source = CharField(index=True, max_length=20) # ex: tracked object, audio, external
source = CharField(index=True, max_length=20) # ex: tracked object, audio, external
source_id = CharField(index=True, max_length=30)
class_type = CharField(max_length=50) # ex: entered_zone, audio_heard
data = JSONField() # ex: tracked object id, region, box, etc.
class_type = CharField(max_length=50) # ex: entered_zone, audio_heard
data = JSONField() # ex: tracked object id, region, box, etc.
class Recordings(Model): # type: ignore[misc]