diff --git a/ckanext/harvest/logic/action/update.py b/ckanext/harvest/logic/action/update.py index 8c3a170..121c28e 100644 --- a/ckanext/harvest/logic/action/update.py +++ b/ckanext/harvest/logic/action/update.py @@ -217,6 +217,7 @@ def harvest_jobs_run(context,data_dict): last_object = session.query(HarvestObject) \ .filter(HarvestObject.harvest_job_id==job['id']) \ + .filter(HarvestObject.import_finished!=None) \ .order_by(HarvestObject.import_finished.desc()) \ .first() if last_object: