Skip to content

Commit

Permalink
facets group generator fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alzpeta committed Oct 25, 2023
1 parent 8b55f8c commit d4f9e5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class {{ vars.search_options| class_header }}:

{% endfor %}
{% for base_class in vars.search_options.base_classes %}
**getattr(({{ base_class|base_name }}, 'facet_groups', {}).get('{{group }}', {}))
**getattr({{ base_class|base_name }}, 'facet_groups', {}).get('{{group }}', {})
{% endfor %}
},
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-model-builder
version = 4.0.56
version = 4.0.57
description = A utility library that generates OARepo required data model files from a JSON specification file
authors = Miroslav Bauer <[email protected]>, Miroslav Simek <[email protected]>
readme = README.md
Expand Down
6 changes: 3 additions & 3 deletions tests/test_search_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class TestSearchOptions(InvenioSearchOptions):
**getattr((InvenioSearchOptions, 'facet_groups', {}).get('curator', {}))
**getattr(InvenioSearchOptions, 'facet_groups', {}).get('curator', {})
},
Expand Down Expand Up @@ -364,11 +364,11 @@ class TestSearchOptions(BaseSearchOptions):
'curator': {
'a' : facets.a,
'g' : facets.g,
**getattr((BaseSearchOptions, 'facet_groups', {}).get('curator', {}))
**getattr(BaseSearchOptions, 'facet_groups', {}).get('curator', {})
},
'user': {
'a' : facets.a,
**getattr((BaseSearchOptions, 'facet_groups', {}).get('user', {}))
**getattr(BaseSearchOptions, 'facet_groups', {}).get('user', {})
},
}
Expand Down

0 comments on commit d4f9e5d

Please sign in to comment.