提交 19906e77 编写于 作者: F feilong

增加项目类型习题+fix buig

上级 e1b9bd44
...@@ -437,7 +437,7 @@ class TreeWalker: ...@@ -437,7 +437,7 @@ class TreeWalker:
mfile = base + ".json" mfile = base + ".json"
meta_path = os.path.join(section_path, mfile) meta_path = os.path.join(section_path, mfile)
md_file = os.path.join(section_path, e) md_file = os.path.join(section_path, e)
self.ensure_exercises_meta(meta_path, source, md_file) meta = self.ensure_exercises_meta(meta_path, source, md_file)
export = config.get("export", []) export = config.get("export", [])
if mfile not in export and self.name != "algorithm": if mfile not in export and self.name != "algorithm":
export.append(mfile) export.append(mfile)
...@@ -523,6 +523,7 @@ class TreeWalker: ...@@ -523,6 +523,7 @@ class TreeWalker:
"exercise_id": uuid.uuid4().hex, "exercise_id": uuid.uuid4().hex,
} }
dump_json(meta_path, meta, True, True) dump_json(meta_path, meta, True, True)
return meta
def default_notebook(self): def default_notebook(self):
if self.enable_notebook is not None: if self.enable_notebook is not None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册