Fix empty job finished date
This commit is contained in:
parent
04710fd1c6
commit
bec31a611e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue