mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +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 tzlocal import get_localzone_name
|
||||||
|
|
||||||
from frigate.config import FrigateConfig
|
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.events.external import ExternalEventProcessor
|
||||||
from frigate.models import Event, Recordings, Timeline
|
from frigate.models import Event, Recordings, Timeline
|
||||||
from frigate.object_processing import TrackedObject
|
from frigate.object_processing import TrackedObject
|
||||||
@ -43,8 +43,8 @@ from frigate.util import (
|
|||||||
ffprobe_stream,
|
ffprobe_stream,
|
||||||
get_tz_modifiers,
|
get_tz_modifiers,
|
||||||
restart_frigate,
|
restart_frigate,
|
||||||
vainfo_hwaccel,
|
|
||||||
update_yaml_from_url,
|
update_yaml_from_url,
|
||||||
|
vainfo_hwaccel,
|
||||||
)
|
)
|
||||||
from frigate.version import VERSION
|
from frigate.version import VERSION
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,6 @@ from collections import Counter
|
|||||||
from collections.abc import Mapping
|
from collections.abc import Mapping
|
||||||
from multiprocessing import shared_memory
|
from multiprocessing import shared_memory
|
||||||
from typing import Any, AnyStr, Optional, Tuple
|
from typing import Any, AnyStr, Optional, Tuple
|
||||||
from ruamel.yaml import YAML
|
|
||||||
|
|
||||||
import cv2
|
import cv2
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@ -22,6 +21,7 @@ import psutil
|
|||||||
import py3nvml.py3nvml as nvml
|
import py3nvml.py3nvml as nvml
|
||||||
import pytz
|
import pytz
|
||||||
import yaml
|
import yaml
|
||||||
|
from ruamel.yaml import YAML
|
||||||
|
|
||||||
from frigate.const import REGEX_HTTP_CAMERA_USER_PASS, REGEX_RTSP_CAMERA_USER_PASS
|
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) {
|
} catch (error) {
|
||||||
// handle error
|
// handle error
|
||||||
console.error(error);
|
|
||||||
}
|
}
|
||||||
}, [motionMaskPoints]);
|
}, [motionMaskPoints]);
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ ${Object.keys(zonePoints)
|
|||||||
if (window.navigator.clipboard && window.navigator.clipboard.writeText) {
|
if (window.navigator.clipboard && window.navigator.clipboard.writeText) {
|
||||||
// Use Clipboard API if available
|
// Use Clipboard API if available
|
||||||
window.navigator.clipboard.writeText(textToCopy).catch((err) => {
|
window.navigator.clipboard.writeText(textToCopy).catch((err) => {
|
||||||
console.error('Failed to copy text: ', err);
|
//console.error('Failed to copy text: ', err);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Fallback to document.execCommand('copy')
|
// Fallback to document.execCommand('copy')
|
||||||
@ -168,7 +168,7 @@ ${Object.keys(zonePoints)
|
|||||||
throw new Error('Failed to copy text');
|
throw new Error('Failed to copy text');
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Failed to copy text: ', err);
|
//console.error('Failed to copy text: ', err);
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.removeChild(textarea);
|
document.body.removeChild(textarea);
|
||||||
@ -187,7 +187,7 @@ ${Object.keys(zonePoints)
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// handle error
|
// handle error
|
||||||
console.error(error);
|
//console.error(error);
|
||||||
}
|
}
|
||||||
}, [zonePoints]);
|
}, [zonePoints]);
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ ${Object.keys(objectMaskPoints)
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// handle error
|
// handle error
|
||||||
console.error(error);
|
//console.error(error);
|
||||||
}
|
}
|
||||||
}, [objectMaskPoints]);
|
}, [objectMaskPoints]);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user