diff options
Diffstat (limited to 'pyblackbird_cc')
-rw-r--r-- | pyblackbird_cc/resources/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyblackbird_cc/resources/views.py b/pyblackbird_cc/resources/views.py index 40ca4aa..d8847b1 100644 --- a/pyblackbird_cc/resources/views.py +++ b/pyblackbird_cc/resources/views.py @@ -48,7 +48,7 @@ class ResourceInfo: main_resource_category_name: str main_resource_category_colour_css_class: str main_resource_badge_foreground_colour: str - additional_resource_category_name: str | None + subcategories: str | None age_range: str | None pdf_filenames: list[str] pdf_urls: list[str] @@ -112,7 +112,7 @@ def _extract_metadata_from_resource(resource_obj) -> ResourceInfo | None: main_resource_category_name=resource_obj.main_resource_category.name, main_resource_category_colour_css_class=resource_obj.main_resource_category.colour_css_class, main_resource_badge_foreground_colour=resource_obj.main_resource_category.badge_foreground_colour, - additional_resource_category_name=arc_name, + subcategories=arc_name, age_range=resource_obj.age_range, pdf_filenames=pdf_resource_filenames, pdf_urls=pdf_urls, |