From d495e269e72b05bb2efd3ac54f7ab7c09a3615cf Mon Sep 17 00:00:00 2001 From: David Read Date: Mon, 2 Nov 2015 17:29:45 +0000 Subject: [PATCH] [#158] Fix tests --- ckanext/harvest/logic/action/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ckanext/harvest/logic/action/update.py b/ckanext/harvest/logic/action/update.py index 0d75bda..15013b5 100644 --- a/ckanext/harvest/logic/action/update.py +++ b/ckanext/harvest/logic/action/update.py @@ -375,7 +375,8 @@ def harvest_jobs_run(context,data_dict): if num_objects_in_progress == 0: job_obj = HarvestJob.get(job['id']) job_obj.status = u'Finished' - log.info('Marking job as finished %s %s', job.source.url, job.id) + log.info('Marking job as finished %s %s', + job_obj.source.url, job_obj.id) # save the time of finish, according to the last running object last_object = session.query(HarvestObject) \