[ckan-changes] commit/ckanext-harvest: amercader: Add a check to ensure sources with no packages are reharvested

Bitbucket commits-noreply at bitbucket.org
Tue Jun 14 11:59:58 UTC 2011


1 new changeset in ckanext-harvest:

http://bitbucket.org/okfn/ckanext-harvest/changeset/c5e808ebc6b8/
changeset:   c5e808ebc6b8
user:        amercader
date:        2011-06-14 13:59:48
summary:     Add a check to ensure sources with no packages are reharvested
affected #:  1 file (39 bytes)

--- a/ckanext/harvest/harvesters/ckanharvester.py	Tue Jun 14 10:27:48 2011 +0100
+++ b/ckanext/harvest/harvesters/ckanharvester.py	Tue Jun 14 12:59:48 2011 +0100
@@ -86,7 +86,7 @@
         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

Repository URL: https://bitbucket.org/okfn/ckanext-harvest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list