Commit f85da4fe authored by pengxiong's avatar pengxiong

更新模版

parent 6b0a587b
......@@ -91,7 +91,7 @@ def update_template(args):
})
else:
allowed_keys = json.loads(res[0].custom_template).keys()
for key, value in template_data.items():
for key in list(template_data.keys()):
if key not in allowed_keys:
template_data.pop(key)
# 更新自定义模版
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment