Merge branch 'source-is-a-dict'

This commit is contained in:
amercader 2013-07-29 11:22:48 +01:00
commit 18f8a92084
1 changed files with 2 additions and 2 deletions

View File

@ -105,9 +105,9 @@ def harvest_job_create_all(context,data_dict):
jobs = [] jobs = []
# Create a new job for each, if there isn't already one # Create a new job for each, if there isn't already one
for source in sources: for source in sources:
exists = _check_for_existing_jobs(context, source.id) exists = _check_for_existing_jobs(context, source['id'])
if exists: if exists:
log.info('Skipping source %s as it already has a pending job',source.id) log.info('Skipping source %s as it already has a pending job', source['id'])
continue continue
job = harvest_job_create(context,{'source_id':source['id']}) job = harvest_job_create(context,{'source_id':source['id']})