This commit is contained in:
Timothy J. Baek 2024-08-25 16:57:01 +02:00
parent 58cf1be20c
commit fd0370d801

View File

@ -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