Skip to content

Commit

Permalink
expect kwargs in get_searchview_instance(), pass default_property to …
Browse files Browse the repository at this point in the history
…get_searchview_name, re #11546
  • Loading branch information
whatisgalen committed Oct 15, 2024
1 parent a8e9783 commit 4ebeb0d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions arches/app/search/components/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_filter(self, componentname):
else:
return None

def get_searchview_name(self):
def get_searchview_name(self, default_type=None):
if not self.request:
searchview_component_name = None
elif self.request.method == "POST":
Expand All @@ -101,8 +101,11 @@ def get_searchview_name(self):

return searchview_component_name

def get_searchview_instance(self):
searchview_component_name = self.get_searchview_name()
def get_searchview_instance(self, **kwargs):
default_property = kwargs.get("default_property", None)
searchview_component_name = self.get_searchview_name(
default_property=default_property
)
return self.get_filter(searchview_component_name)

def create_search_query_dict(self, key_value_pairs: List[Tuple[str, Any]]):
Expand Down

0 comments on commit 4ebeb0d

Please sign in to comment.