mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
ruff check
This commit is contained in:
@@ -9,5 +9,13 @@ from .downloader_experimental import VideoDownloaderExperimental
|
||||
from .event_listener import EventListener
|
||||
from .purge import Purge
|
||||
from .uploader import VideoUploader
|
||||
from .missing_event_checker import MissingEventChecker
|
||||
|
||||
from .missing_event_checker import MissingEventChecker # isort: skip
|
||||
__all__ = [
|
||||
VideoDownloader,
|
||||
VideoDownloaderExperimental,
|
||||
EventListener,
|
||||
Purge,
|
||||
VideoUploader,
|
||||
MissingEventChecker,
|
||||
]
|
||||
|
||||
@@ -125,7 +125,7 @@ class MissingEventChecker:
|
||||
|
||||
async def ignore_missing(self):
|
||||
"""Ignore missing events by adding them to the event table."""
|
||||
logger.info(f" Ignoring missing events")
|
||||
logger.info(" Ignoring missing events")
|
||||
|
||||
async for event in self._get_missing_events():
|
||||
logger.extra_debug(f"Ignoring event '{event.id}'")
|
||||
@@ -150,7 +150,7 @@ class MissingEventChecker:
|
||||
|
||||
async for event in self._get_missing_events():
|
||||
if not shown_warning:
|
||||
logger.warning(f" Found missing events, adding to backup queue")
|
||||
logger.warning(" Found missing events, adding to backup queue")
|
||||
shown_warning = True
|
||||
|
||||
if event.type != EventType.SMART_DETECT:
|
||||
|
||||
Reference in New Issue
Block a user