diff --git a/ckanext/harvest/logic/action/create.py b/ckanext/harvest/logic/action/create.py index 042d8f6..8c23ded 100644 --- a/ckanext/harvest/logic/action/create.py +++ b/ckanext/harvest/logic/action/create.py @@ -65,10 +65,7 @@ def harvest_source_create(context,data_dict): data_dict['type'] = DATASET_TYPE_NAME context['extras_as_string'] = True - package_dict = logic.get_action('package_create')(context, data_dict) - - context['schema'] = harvest_source_show_package_schema() - source = logic.get_action('package_show')(context, package_dict) + source = logic.get_action('package_create')(context, data_dict) return source diff --git a/ckanext/harvest/logic/action/update.py b/ckanext/harvest/logic/action/update.py index c4c12d4..de4bc09 100644 --- a/ckanext/harvest/logic/action/update.py +++ b/ckanext/harvest/logic/action/update.py @@ -77,10 +77,7 @@ def harvest_source_update(context,data_dict): data_dict['type'] = DATASET_TYPE_NAME context['extras_as_string'] = True - package_dict = logic.get_action('package_update')(context, data_dict) - - context['schema'] = harvest_source_show_package_schema() - source = logic.get_action('package_show')(context, package_dict) + source = logic.get_action('package_update')(context, data_dict) return source