diff --git a/ckanext/fcscopendata/logic/action/update.py b/ckanext/fcscopendata/logic/action/update.py index 1d11f21..a5af174 100644 --- a/ckanext/fcscopendata/logic/action/update.py +++ b/ckanext/fcscopendata/logic/action/update.py @@ -68,7 +68,10 @@ def package_update(up_func, context, data_dict): # Map resource description from scheming note field if data_dict.get('resources', False): for resources in data_dict['resources']: - resources['description'] = resources.get('notes_translated-en', '') + if resources.get('notes_translated-en', False): + resources['description'] = resources.get('notes_translated-en', '') + else: + resources['description'] = resources.get('notes_translated', {}).get('en', '') result = up_func(context, data_dict) # Update package member for groups