From fd0370d801aab52f445a5ab2b44edc27c8b5c5a1 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 25 Aug 2024 16:57:01 +0200 Subject: [PATCH] fix --- backend/config.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/config.py b/backend/config.py index a0e47af96..60d0c563c 100644 --- a/backend/config.py +++ b/backend/config.py @@ -181,7 +181,6 @@ class PersistentConfig(Generic[T]): config[key] = {} config = config[key] config[path_parts[-1]] = self.value - existing_config.version += 1 else: # This case should not actually occur as there should always be at least one entry new_data = {} config = new_data @@ -189,7 +188,7 @@ class PersistentConfig(Generic[T]): config[key] = {} config = config[key] config[path_parts[-1]] = self.value - new_config = Config(data=new_data, version=1) + new_config = Config(data=new_data, version=0) db.add(new_config) db.commit() self.config_value = self.value