mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-12 16:16:42 +03:00
fix
This commit is contained in:
parent
89caee3834
commit
c3aae51183
@ -844,7 +844,7 @@ def delete_classification_model(request: Request, name: str):
|
|||||||
config_file = find_config_file()
|
config_file = find_config_file()
|
||||||
try:
|
try:
|
||||||
# Setting value to empty string deletes the key
|
# Setting value to empty string deletes the key
|
||||||
updates = {f"classification.custom.{name}": None}
|
updates = {f"classification.custom.{name}": ""}
|
||||||
update_yaml_file_bulk(config_file, updates)
|
update_yaml_file_bulk(config_file, updates)
|
||||||
|
|
||||||
# Reload and update the in-memory config
|
# Reload and update the in-memory config
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user