Timothy J. Baek 8 months ago
parent
commit
fd0370d801
1 changed files with 1 additions and 2 deletions
  1. 1 2
      backend/config.py

+ 1 - 2
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