diff options
author | Matthew Lemon <y@yulqen.org> | 2024-08-01 16:25:02 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-08-01 16:25:02 +0100 |
commit | aed842e208619c9670c4511adee6ba7a6fb9f57f (patch) | |
tree | dfe66cd08835dda22835c0b21edd61681bf7548a /pyblackbird_cc/resources/views.py | |
parent | dd4fd5f4575fb68b584c4131a04a74a11e2902a5 (diff) |
Renamed additional_resource_categories to subcategories in ResourceInfo object.
Diffstat (limited to 'pyblackbird_cc/resources/views.py')
-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, |