Fix empty job finished date

This commit is contained in:
amercader 2013-03-06 13:42:35 +00:00
parent 04710fd1c6
commit bec31a611e
1 changed files with 1 additions and 0 deletions

View File

@ -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: