Skip to content

Commit f062fcf

Browse files
committed
deep copy noexists cfg
1 parent bf71e3e commit f062fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ async def fetch_config(request: web.Request):
336336
ret_model_map = {}
337337
for name in models:
338338
if name not in old_model_map:
339-
mcfg = example_cfg.copy()
339+
mcfg = deepcopy(example_cfg)
340340
mcfg["name"] = name
341341
old_model_map[name] = mcfg
342342
CFG_MANAGER.dirty = True

0 commit comments

Comments
 (0)