fix job reporting to have job finished timestamp when there was zero datasets to gather

This commit is contained in:
Jari Voutilainen 2014-09-10 09:13:53 +03:00
parent 97f09913cf
commit f6c1456abe
1 changed files with 2 additions and 0 deletions

View File

@ -317,6 +317,8 @@ def harvest_jobs_run(context,data_dict):
.first() .first()
if last_object: if last_object:
job_obj.finished = last_object.import_finished job_obj.finished = last_object.import_finished
else:
job.obj.finished = job['gather_finished']
job_obj.save() job_obj.save()
# Reindex the harvest source dataset so it has the latest # Reindex the harvest source dataset so it has the latest
# status # status