Merge pull request #978 from ynput/bugfix/delivery-use-current-anatomy-roots

Delivery: Use current roots during delivery
This commit is contained in:
Jakub Trllo 2024-10-30 15:26:18 +01:00 committed by GitHub
commit 070d3a5d84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -409,5 +409,9 @@ def get_representations_delivery_template_data(
"version": version_entity["version"],
})
_merge_data(template_data, repre_entity["context"])
# Remove roots from template data to auto-fill them with anatomy data
template_data.pop("root", None)
output[repre_id] = template_data
return output