mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-23 16:48:23 +03:00
convert none to empty string for config save
This commit is contained in:
parent
58053eb3f0
commit
79fedee1d1
@ -442,6 +442,8 @@ def config_set(request: Request, body: AppConfigSetBody):
|
|||||||
updates = process_config_query_string(query_string)
|
updates = process_config_query_string(query_string)
|
||||||
elif body.config_data:
|
elif body.config_data:
|
||||||
updates = flatten_config_data(body.config_data)
|
updates = flatten_config_data(body.config_data)
|
||||||
|
# Convert None values to empty strings for deletion (e.g., when deleting masks)
|
||||||
|
updates = {k: ("" if v is None else v) for k, v in updates.items()}
|
||||||
|
|
||||||
if not updates:
|
if not updates:
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user