From c1104617b69459e14549fe9da49cb52463022869 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sun, 13 Feb 2022 14:15:16 -0500 Subject: [PATCH] database: fix typo in sync implementation Signed-off-by: Eric Callahan --- moonraker/components/database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/moonraker/components/database.py b/moonraker/components/database.py index 9d0bce4..a017565 100644 --- a/moonraker/components/database.py +++ b/moonraker/components/database.py @@ -475,11 +475,11 @@ class MoonrakerDatabase: cursor.put(self._encode_value(value[key])) new_keys.remove(key) remaining = cursor.next() - for k in new_keys: - val = value[k] + for key in new_keys: + val = value[key] ret = txn.put(key.encode(), self._encode_value(val)) if not ret: - logging.info(f"Error inserting key '{k}' " + logging.info(f"Error inserting key '{key}' " f"in namespace '{namespace}'") def ns_length(self, namespace: str) -> Future[int]: