From e871c5178afc12c5f5959fb1043258997169e23c Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 11 Jun 2025 07:35:27 -0600 Subject: [PATCH] Correctly handle indexed entries --- frigate/util/builtin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frigate/util/builtin.py b/frigate/util/builtin.py index c3fcd3683..532eb7900 100644 --- a/frigate/util/builtin.py +++ b/frigate/util/builtin.py @@ -193,10 +193,11 @@ def update_yaml_from_url(file_path: str, url: str): for key_path_str, new_value_list in query_string.items(): key_path = key_path_str.split(".") - for i in range(len(key_path)): + key_path_copy = key_path.copy() + for i in range(len(key_path_copy)): try: - index = int(key_path[i]) - key_path[i] = (key_path[i - 1], index) + index = int(key_path_copy[i]) + key_path[i] = (key_path_copy[i - 1], index) key_path.pop(i - 1) except ValueError: pass