mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
formatting
This commit is contained in:
parent
0bed28d175
commit
c243c143c3
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user