Skip to content

Commit

Permalink
BUG: make collection builder page use SearchTerm
Browse files Browse the repository at this point in the history
  • Loading branch information
shilorigins committed Sep 19, 2024
1 parent 4e749df commit f73ef72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superscore/widgets/page/collection_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ def add_pv(self):

def update_collection_choices(self):
"""update collection choices based on line edit"""
search_kwargs = {'entry_type': (Collection,)}
self._coll_options = [res for res in self.client.search(**search_kwargs)
search_term = ('entry_type', 'eq', Collection)
self._coll_options = [res for res in self.client.search(search_term)
if res not in (self.data.children, self)]
logger.debug(f"Gathered {len(self._coll_options)} collections")
self.coll_combo_box.clear()
Expand Down

0 comments on commit f73ef72

Please sign in to comment.