Skip to content

Commit

Permalink
vocabulary type endpoint: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahW91 committed Jun 13, 2024
1 parent 9de7fd2 commit a5e1f90
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions invenio_vocabularies/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ class VocabularyMetadataList(ServiceListResult):
"""Ensures that vocabulary metadata is returned in the proper format."""

def __init__(
self,
service,
identity,
results,
params=None,
links_tpl=None,
links_item_tpl=None,
self,
service,
identity,
results,
params=None,
links_tpl=None,
links_item_tpl=None,
):
"""Constructor.
Expand Down Expand Up @@ -178,7 +178,7 @@ def search(self, identity, params=None):
"pid_type": db_vocab_type.pid_type,
"count": count_terms_agg.get(db_vocab_type.id, 0),
"is_custom_vocabulary": db_vocab_type.id
in self.custom_vocabulary_names,
in self.custom_vocabulary_names,
}

if db_vocab_type.id in config_vocab_types:
Expand Down Expand Up @@ -228,8 +228,8 @@ class VocabularySearchOptions(SearchOptions):
"""Search options."""

params_interpreters_cls = [
FilterParam.factory(param="tags", field="tags"),
] + SearchOptions.params_interpreters_cls
FilterParam.factory(param="tags", field="tags"),
] + SearchOptions.params_interpreters_cls

suggest_parser_cls = SuggestQueryParser.factory(
fields=[
Expand Down Expand Up @@ -352,7 +352,7 @@ def create_type(self, identity, id, pid_type, uow=None):
return type_

def search(
self, identity, params=None, search_preference=None, type=None, **kwargs
self, identity, params=None, search_preference=None, type=None, **kwargs
):
"""Search for vocabulary entries."""
self.require_permission(identity, "search")
Expand Down

0 comments on commit a5e1f90

Please sign in to comment.