Formatting

This commit is contained in:
Nick Mowen 2023-05-01 15:24:20 -06:00
parent 18ce20ab58
commit d39b02e587
2 changed files with 4 additions and 3 deletions

View File

@ -17,6 +17,7 @@ from multiprocessing.synchronize import Event as MpEvent
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
class EventCleanup(threading.Thread): class EventCleanup(threading.Thread):
def __init__(self, config: FrigateConfig, stop_event: MpEvent): def __init__(self, config: FrigateConfig, stop_event: MpEvent):
threading.Thread.__init__(self) threading.Thread.__init__(self)

View File

@ -79,7 +79,7 @@ class ExternalEventProcessor:
error_image = glob.glob("/opt/frigate/frigate/images/external-event.png") error_image = glob.glob("/opt/frigate/frigate/images/external-event.png")
if len(error_image) > 0: 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() img_bytes = img.read()
self.default_thumbnail = base64.b64encode(img_bytes).decode("utf-8") self.default_thumbnail = base64.b64encode(img_bytes).decode("utf-8")