mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
fix
This commit is contained in:
parent
58cf1be20c
commit
fd0370d801
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user