Skip to content

Commit

Permalink
Fixed Cache.search based on new attribute tables schema
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Sep 10, 2024
1 parent a2e2f70 commit c19b406
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cache_manager/_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,8 +976,12 @@ def search(
'params' if row['keyvar'] else 'attrs',
)

if row['namespace'] is not None:
if (
row['namespace'] is not None
and row['namespace'] not in target
):

target[row['namespace']] = {}
target = target[row['namespace']]

target[row['name']] = row['value']
Expand Down

0 comments on commit c19b406

Please sign in to comment.