Skip to content

Commit

Permalink
fix: orderLink parsing using updated templates metadata-mapping (#1091)
Browse files Browse the repository at this point in the history
Co-authored-by: Sylvain Brunato <[email protected]>
  • Loading branch information
alambare and sbrunato authored Apr 9, 2024
1 parent b3e40f6 commit 4286d13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eodag/api/product/metadata_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
DEFAULT_PROJ,
deepcopy,
dict_items_recursive_apply,
format_string,
get_geometry_from_various,
get_timestamp,
items_recursive_apply,
Expand Down Expand Up @@ -929,7 +930,7 @@ def properties_from_json(
# Resolve templates
for metadata, template in templates.items():
try:
properties[metadata] = template.format(**properties)
properties[metadata] = format_string(metadata, template, **properties)
except ValueError:
logger.warning(
f"Could not parse {metadata} ({template}) using product properties"
Expand Down

0 comments on commit 4286d13

Please sign in to comment.