mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-10 21:33:17 +00:00
linter fixes
This commit is contained in:
@@ -10,10 +10,10 @@ from typing import Optional
|
|||||||
import aiosqlite
|
import aiosqlite
|
||||||
import pytz
|
import pytz
|
||||||
from aiohttp.client_exceptions import ClientPayloadError
|
from aiohttp.client_exceptions import ClientPayloadError
|
||||||
|
from expiring_dict import ExpiringDict # type: ignore
|
||||||
from pyunifiprotect import ProtectApiClient
|
from pyunifiprotect import ProtectApiClient
|
||||||
from pyunifiprotect.data.nvr import Event
|
from pyunifiprotect.data.nvr import Event
|
||||||
from pyunifiprotect.data.types import EventType
|
from pyunifiprotect.data.types import EventType
|
||||||
from expiring_dict import ExpiringDict
|
|
||||||
|
|
||||||
from unifi_protect_backup.utils import (
|
from unifi_protect_backup.utils import (
|
||||||
SubprocessException,
|
SubprocessException,
|
||||||
@@ -122,7 +122,7 @@ class VideoDownloader:
|
|||||||
video = await self._download(event)
|
video = await self._download(event)
|
||||||
if video is None:
|
if video is None:
|
||||||
# Increment failure count
|
# Increment failure count
|
||||||
if not event.id in self._failures:
|
if event.id not in self._failures:
|
||||||
self._failures[event.id] = 1
|
self._failures[event.id] = 1
|
||||||
else:
|
else:
|
||||||
self._failures[event.id] += 1
|
self._failures[event.id] += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user