Timothy J. Baek 8 月之前
父節點
當前提交
fd0370d801
共有 1 個文件被更改,包括 1 次插入2 次删除
  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