mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-13 06:35:24 +03:00
Formatting
This commit is contained in:
parent
8f23bad5a9
commit
f85c237b84
@ -75,7 +75,9 @@ class RecordingExporter(threading.Thread):
|
|||||||
def save_thumbnail(self, id: str) -> str:
|
def save_thumbnail(self, id: str) -> str:
|
||||||
thumb_path = os.path.join(CLIPS_DIR, f"export/{id}.webp")
|
thumb_path = os.path.join(CLIPS_DIR, f"export/{id}.webp")
|
||||||
|
|
||||||
if self.user_provided_image is not None and os.path.isfile(self.user_provided_image):
|
if self.user_provided_image is not None and os.path.isfile(
|
||||||
|
self.user_provided_image
|
||||||
|
):
|
||||||
shutil.copy(self.user_provided_image, thumb_path)
|
shutil.copy(self.user_provided_image, thumb_path)
|
||||||
return thumb_path
|
return thumb_path
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user