mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Save numbers as int instead of string
This commit is contained in:
parent
8bfc0c98dc
commit
c7239cefb3
@ -208,7 +208,12 @@ def update_yaml_from_url(file_path, url):
|
|||||||
if len(new_value_list) > 1:
|
if len(new_value_list) > 1:
|
||||||
update_yaml_file(file_path, key_path, new_value_list)
|
update_yaml_file(file_path, key_path, new_value_list)
|
||||||
else:
|
else:
|
||||||
update_yaml_file(file_path, key_path, new_value_list[0])
|
value = str(new_value_list[0])
|
||||||
|
|
||||||
|
if value.isnumeric():
|
||||||
|
value = int(value)
|
||||||
|
|
||||||
|
update_yaml_file(file_path, key_path, value)
|
||||||
|
|
||||||
|
|
||||||
def update_yaml_file(file_path, key_path, new_value):
|
def update_yaml_file(file_path, key_path, new_value):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user