mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-13 06:32:13 +00:00
perf: reduce deep_get in config_update
This commit is contained in:
@@ -455,8 +455,7 @@ class ConfigUpdater:
|
||||
"""
|
||||
new = {}
|
||||
|
||||
def deep_load(keys):
|
||||
data = deep_get(self.args, keys=keys, default={})
|
||||
for keys, data in deep_iter(self.args, depth=3):
|
||||
value = deep_get(old, keys=keys, default=data['value'])
|
||||
typ = data['type']
|
||||
display = data.get('display')
|
||||
@@ -466,8 +465,6 @@ class ConfigUpdater:
|
||||
value = parse_value(value, data=data)
|
||||
deep_set(new, keys=keys, value=value)
|
||||
|
||||
for path, _ in deep_iter(self.args, depth=3):
|
||||
deep_load(path)
|
||||
|
||||
# if not is_template:
|
||||
# new = self.config_redirect(old, new)
|
||||
|
||||
Reference in New Issue
Block a user