Skip to content

Commit

Permalink
Microfixes to contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
sesquideus committed Dec 9, 2023
1 parent 87ae577 commit 41df0cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/builder/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()])
Expand Down
2 changes: 1 addition & 1 deletion modules/scholar/builder/contexts/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 41df0cb

Please sign in to comment.