diff --git a/ckanext/harvest/logic/action/delete.py b/ckanext/harvest/logic/action/delete.py index b2dcfb3..70e8c0a 100644 --- a/ckanext/harvest/logic/action/delete.py +++ b/ckanext/harvest/logic/action/delete.py @@ -22,6 +22,7 @@ def harvest_source_delete(context, data_dict): p.toolkit.get_action('package_delete')(context, data_dict) if context.get('clear_source', False): + # We need the id. The name won't work. package_dict = p.toolkit.get_action('package_show')(context, data_dict) diff --git a/ckanext/harvest/logic/action/update.py b/ckanext/harvest/logic/action/update.py index 23318bf..bd06d2c 100644 --- a/ckanext/harvest/logic/action/update.py +++ b/ckanext/harvest/logic/action/update.py @@ -216,6 +216,7 @@ def harvest_source_index_clear(context, data_dict): Clears all datasets, jobs and objects related to a harvest source, but keeps the source itself. This is useful to clean history of long running harvest sources to start again fresh. + :param id: the id of the harvest source to clear :type id: string '''