Merge pull request #1027 from BigRoy/bugfix/delivery_python_api_backwards_compatibility_fix

Loader: Delivery - fix backwards compatibility with older AYON python api
This commit is contained in:
Jakub Trllo 2024-11-25 23:34:11 +01:00 committed by GitHub
commit bdc3c004e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -387,7 +387,7 @@ def get_representations_delivery_template_data(
# convert representation entity. Fixed in 'ayon_api' 1.0.10.
if isinstance(template_data, str):
con = ayon_api.get_server_api_connection()
repre_entity = con._representation_conversion(repre_entity)
con._representation_conversion(repre_entity)
template_data = repre_entity["context"]
template_data.update(copy.deepcopy(general_template_data))