提交 e73cc108 编写于 作者: M Mars Liu

fixed odd orders

上级 03e2883c
......@@ -70,10 +70,6 @@ def check_export(base, cfg):
return flag
def gen_node_id():
return "oceanbase-" + uuid.uuid4().hex
class TreeWalker:
def __init__(self, root, tree_name, title=None, log=None):
self.name = tree_name
......@@ -307,8 +303,7 @@ class TreeWalker:
config = self.ensure_section_config(section_path)
for e in config.get("export", []):
full_name = os.path.join(section_path, e)
logger.info(full_name)
exercise = load_json(full_name)
if not exercise.get("exercise_id"):
if "exercise_id" not in exercise:
exercise["exercise_id"] = uuid.uuid4().hex
dump_json(full_name, exercise, exist_ok=True, override=True)
dump_json(full_name, exercise, True, True)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册