Skip to content

Commit

Permalink
Update ibridges/search.py
Browse files Browse the repository at this point in the history
Co-authored-by: qubixes <[email protected]>
  • Loading branch information
chStaiger and qubixes authored Nov 15, 2024
1 parent cdd1121 commit 85b652d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ibridges/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,8 @@ def search_data( # pylint: disable=too-many-branches
results = [dict(s) for s in set(frozenset(d.items()) for d in query_results)]
for item in results:
if isinstance(item, dict):
key_map = [(k.icat_key, k) for k in item.keys()]
for n_key, o_key in key_map:
item[n_key] = item.pop(o_key)
for key in item.keys():
item[key.icat_key] = item.pop(key)

# Convert the results to IrodsPath objects.
ipath_results: List[CachedIrodsPath] = []
Expand Down

0 comments on commit 85b652d

Please sign in to comment.