mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-17 13:48:21 +03:00
formatting
This commit is contained in:
parent
56679a041b
commit
78bc11d7e0
@ -177,10 +177,8 @@ def config(request: Request):
|
||||
config_obj.active_profile is not None
|
||||
and request.app.profile_manager is not None
|
||||
):
|
||||
base_sections = (
|
||||
request.app.profile_manager.get_base_configs_for_api(
|
||||
camera_name
|
||||
)
|
||||
base_sections = request.app.profile_manager.get_base_configs_for_api(
|
||||
camera_name
|
||||
)
|
||||
if base_sections:
|
||||
camera_dict["base_config"] = base_sections
|
||||
|
||||
@ -70,8 +70,7 @@ class ProfileManager:
|
||||
if section == "zones":
|
||||
# zones is a dict of ZoneConfig models
|
||||
self._base_configs[cam_name][section] = {
|
||||
name: zone.model_dump()
|
||||
for name, zone in section_value.items()
|
||||
name: zone.model_dump() for name, zone in section_value.items()
|
||||
}
|
||||
self._base_api_configs[cam_name][section] = {
|
||||
name: {
|
||||
@ -85,9 +84,7 @@ class ProfileManager:
|
||||
for name, zone in section_value.items()
|
||||
}
|
||||
else:
|
||||
self._base_configs[cam_name][section] = (
|
||||
section_value.model_dump()
|
||||
)
|
||||
self._base_configs[cam_name][section] = section_value.model_dump()
|
||||
self._base_api_configs[cam_name][section] = (
|
||||
section_value.model_dump(
|
||||
mode="json",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user