From c243c143c3cfc9ee5b3ebb8125637134cf430dcc Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Mon, 26 Jun 2023 14:02:00 +0300 Subject: [PATCH] formatting --- frigate/http.py | 4 ++-- frigate/util.py | 2 +- web/src/routes/CameraMap.jsx | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index 9577b97d0..5dc3973ba 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -29,7 +29,7 @@ from playhouse.shortcuts import model_to_dict from tzlocal import get_localzone_name from frigate.config import FrigateConfig -from frigate.const import CLIPS_DIR, MAX_SEGMENT_DURATION, RECORD_DIR, CONFIG_DIR +from frigate.const import CLIPS_DIR, CONFIG_DIR, MAX_SEGMENT_DURATION, RECORD_DIR from frigate.events.external import ExternalEventProcessor from frigate.models import Event, Recordings, Timeline from frigate.object_processing import TrackedObject @@ -43,8 +43,8 @@ from frigate.util import ( ffprobe_stream, get_tz_modifiers, restart_frigate, - vainfo_hwaccel, update_yaml_from_url, + vainfo_hwaccel, ) from frigate.version import VERSION diff --git a/frigate/util.py b/frigate/util.py index 73df5fbce..e0d890134 100755 --- a/frigate/util.py +++ b/frigate/util.py @@ -14,7 +14,6 @@ from collections import Counter from collections.abc import Mapping from multiprocessing import shared_memory from typing import Any, AnyStr, Optional, Tuple -from ruamel.yaml import YAML import cv2 import numpy as np @@ -22,6 +21,7 @@ import psutil import py3nvml.py3nvml as nvml import pytz import yaml +from ruamel.yaml import YAML from frigate.const import REGEX_HTTP_CAMERA_USER_PASS, REGEX_RTSP_CAMERA_USER_PASS diff --git a/web/src/routes/CameraMap.jsx b/web/src/routes/CameraMap.jsx index 20e9a343d..f055e611c 100644 --- a/web/src/routes/CameraMap.jsx +++ b/web/src/routes/CameraMap.jsx @@ -113,7 +113,7 @@ ${motionMaskPoints.map((mask) => ` - ${polylinePointsToPolyline(mask)}`).jo } } catch (error) { // handle error - console.error(error); + } }, [motionMaskPoints]); @@ -153,7 +153,7 @@ ${Object.keys(zonePoints) if (window.navigator.clipboard && window.navigator.clipboard.writeText) { // Use Clipboard API if available window.navigator.clipboard.writeText(textToCopy).catch((err) => { - console.error('Failed to copy text: ', err); + //console.error('Failed to copy text: ', err); }); } else { // Fallback to document.execCommand('copy') @@ -168,7 +168,7 @@ ${Object.keys(zonePoints) throw new Error('Failed to copy text'); } } catch (err) { - console.error('Failed to copy text: ', err); + //console.error('Failed to copy text: ', err); } document.body.removeChild(textarea); @@ -187,7 +187,7 @@ ${Object.keys(zonePoints) } } catch (error) { // handle error - console.error(error); + //console.error(error); } }, [zonePoints]); @@ -243,7 +243,7 @@ ${Object.keys(objectMaskPoints) } } catch (error) { // handle error - console.error(error); + //console.error(error); } }, [objectMaskPoints]);