From 4ef1823a73d569dabf824bb6cd1700812f2d0676 Mon Sep 17 00:00:00 2001 From: Mars Liu Date: Fri, 3 Dec 2021 17:35:07 +0800 Subject: [PATCH] skip export completion if in algorithm --- src/tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree.py b/src/tree.py index b5a8cb2..c31754d 100644 --- a/src/tree.py +++ b/src/tree.py @@ -316,7 +316,7 @@ class TreeWalker: meta_path = os.path.join(section_path, mfile) self.ensure_exercises_meta(meta_path, source) export = config.get("export", []) - if mfile not in export: + if mfile not in export and self.name != "algorithm": export.append(mfile) flag = True config["export"] = export -- GitLab