Skip to content

Commit

Permalink
Readd link flattening to flatten_json
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jul 25, 2024
1 parent 3300cb6 commit dc89a5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pynxtools/dataconverter/readers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ def update_config(key, value, rkey):
dont_flatten_link_dict=dont_flatten_link_dict,
)
)
elif isinstance(value, str) and value.startswith("@link:"):
flattened_config[key] = {"link": value[6:]}
else:
flattened_config[key] = value

Expand Down

0 comments on commit dc89a5e

Please sign in to comment.