From 0ce592ce8788706b8ad6ba029a718ca3f50155b1 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 8 Jul 2015 22:43:26 +0200 Subject: [PATCH] more syntax fixes. #363 --- app/jobs/pmc_job.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/pmc_job.rb b/app/jobs/pmc_job.rb index acc382a98..5c5b54a3e 100644 --- a/app/jobs/pmc_job.rb +++ b/app/jobs/pmc_job.rb @@ -8,8 +8,8 @@ def perform(publisher_id, month, year, journal, options={}) dates = source.date_range(month: month, year: year) # we have to do this sequentally, as we are updating a single CouchDB document for a work for every month dates.each do |date| - filename = get_feed(publisher_id, date[:month], date[:year], journal, options) - parse_feed(publisher_id, date[:month], date[:year], journal, options) if filename.present? + filename = source.get_feed(publisher_id, date[:month], date[:year], journal, options) + source.parse_feed(publisher_id, date[:month], date[:year], journal, options) if filename.present? end end end