diff --git a/directives/ae_output.py b/directives/ae_output.py index 1d68ddd..2a94669 100644 --- a/directives/ae_output.py +++ b/directives/ae_output.py @@ -109,6 +109,8 @@ def run(self): 'category': 'active elements', 'max_submissions': self.options.get('submissions', data.get('max_submissions', env.config.ae_default_submissions)), }) + data["category"] = "active elements" if data["max_submissions"] == 0 else "active elements with max submissions" + data.setdefault('status', self.options.get('status', 'unlisted')) self.apply_override(data, category) diff --git a/toc_config.py b/toc_config.py index f2d714b..d85ac08 100644 --- a/toc_config.py +++ b/toc_config.py @@ -416,6 +416,10 @@ def parse_chapter(docname, doc, parent, module_meta): if key in categories: categories[key]['status'] = 'nototal' + if "active elements" in categories: + categories["active elements"].setdefault("accept_unofficial_submits", True) + + # Set unprotected paths unprotected_paths = course_meta.get('unprotected-paths', app.config.unprotected_paths) if isinstance(unprotected_paths, str): unprotected_paths = shlex.split(unprotected_paths)