From 41df0cbec3adecc7243c98af4eae69c20024c8c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Bal=C3=A1=C5=BE?= Date: Sat, 9 Dec 2023 23:20:24 +0000 Subject: [PATCH] Microfixes to contexts --- core/builder/context.py | 2 +- modules/scholar/builder/contexts/validators.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/builder/context.py b/core/builder/context.py index 2309e0d6..3d84d116 100644 --- a/core/builder/context.py +++ b/core/builder/context.py @@ -171,7 +171,7 @@ def add_list(self, key, ctxs): def add_subdirs(self, *subcontext_args): log.debug(f"Adding subdirs to {self.__class__.__name__}: " - f"{self._subcontext_class.__name__} with args {subcontext_args}") + f"{self._subcontext_class.__name__} with args {subcontext_args}") cr = crawler.Crawler(self.node_path(*subcontext_args)) self.add_list(self._subcontext_key, [self._subcontext_class(self.root, *subcontext_args, child) for child in cr.subdirs()]) diff --git a/modules/scholar/builder/contexts/validators.py b/modules/scholar/builder/contexts/validators.py index 7c8bb481..e72c7507 100644 --- a/modules/scholar/builder/contexts/validators.py +++ b/modules/scholar/builder/contexts/validators.py @@ -10,7 +10,7 @@ class ScholarValidator(FileSystemValidator): Optional('problem.md'): File, Optional('solution.md'): File, Optional(Regex(r'[\w-]+\.(png|jpg|svg|gp|py|dat)')): File, - #'meta.yaml': File, + 'meta.yaml': File, }, Optional('text.md'): File, 'meta.yaml': File,