Fix output for harvest_source_create/update
They were using an incorrect schema, so not returning a harvest source like dict.
This commit is contained in:
parent
c9aff29613
commit
e60e2eee03
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue