diff --git a/ckanext/harvest/logic/action/update.py b/ckanext/harvest/logic/action/update.py index 2da2131..26cba4e 100644 --- a/ckanext/harvest/logic/action/update.py +++ b/ckanext/harvest/logic/action/update.py @@ -318,7 +318,7 @@ def harvest_jobs_run(context,data_dict): if last_object: job_obj.finished = last_object.import_finished else: - job.obj.finished = job['gather_finished'] + job_obj.finished = job['gather_finished'] job_obj.save() # Reindex the harvest source dataset so it has the latest # status