From d39b02e587911ec5be200a7df723b657312645ff Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Mon, 1 May 2023 15:24:20 -0600 Subject: [PATCH] Formatting --- frigate/events/cleanup.py | 5 +++-- frigate/events/external.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frigate/events/cleanup.py b/frigate/events/cleanup.py index 28a84ca0b..09b1964fd 100644 --- a/frigate/events/cleanup.py +++ b/frigate/events/cleanup.py @@ -9,7 +9,7 @@ from pathlib import Path from peewee import fn -from frigate.config import FrigateConfig +from frigate.config import FrigateConfig from frigate.const import CLIPS_DIR from frigate.models import Event @@ -17,6 +17,7 @@ from multiprocessing.synchronize import Event as MpEvent logger = logging.getLogger(__name__) + class EventCleanup(threading.Thread): def __init__(self, config: FrigateConfig, stop_event: MpEvent): threading.Thread.__init__(self) @@ -172,4 +173,4 @@ class EventCleanup(threading.Thread): ) delete_query.execute() - logger.info(f"Exiting event cleanup...") \ No newline at end of file + logger.info(f"Exiting event cleanup...") diff --git a/frigate/events/external.py b/frigate/events/external.py index 5c800a887..05af01ffe 100644 --- a/frigate/events/external.py +++ b/frigate/events/external.py @@ -79,7 +79,7 @@ class ExternalEventProcessor: error_image = glob.glob("/opt/frigate/frigate/images/external-event.png") if len(error_image) > 0: - with open("/opt/frigate/frigate/images/external-event.png", 'rb') as img: + with open("/opt/frigate/frigate/images/external-event.png", "rb") as img: img_bytes = img.read() self.default_thumbnail = base64.b64encode(img_bytes).decode("utf-8")