From bec31a611e98e9c70f9db03e1ea164c54c916228 Mon Sep 17 00:00:00 2001 From: amercader Date: Wed, 6 Mar 2013 13:42:35 +0000 Subject: [PATCH] Fix empty job finished date --- ckanext/harvest/logic/action/update.py | 1 + 1 file changed, 1 insertion(+) 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: