Skip to content

Commit

Permalink
Fixed processing nested attributes in Cache.search
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Sep 10, 2024
1 parent 93a8934 commit d93ba42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cache_manager/_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -976,12 +976,12 @@ def search(
'params' if row['keyvar'] else 'attrs',
)

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

if row['namespace'] not in target:

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

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

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

0 comments on commit d93ba42

Please sign in to comment.