Add a check to ensure sources with no packages are reharvested

This commit is contained in:
Adrià Mercader 2011-06-14 12:59:48 +01:00
parent 2ac9885150
commit 3125bb1514
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class CKANHarvester(HarvesterBase):
base_rest_url = base_url + self._get_rest_api_offset()
base_search_url = base_url + self._get_search_api_offset()
if previous_job and not previous_job.gather_errors:
if previous_job and not previous_job.gather_errors and not len(previous_job.objects) == 0:
get_all_packages = False
# Request only the packages modified since last harvest job