From 7a77932fd45b4e4cf170d2f6aa9dbde3e226c71f Mon Sep 17 00:00:00 2001 From: Devin Gaffney Date: Thu, 14 Sep 2023 05:40:35 -0700 Subject: [PATCH] fix small oversight --- app/models/bot/fetch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/bot/fetch.rb b/app/models/bot/fetch.rb index 60628b77fd..7153a3a999 100644 --- a/app/models/bot/fetch.rb +++ b/app/models/bot/fetch.rb @@ -171,7 +171,7 @@ def self.import_claim_reviews(installation_id, language = nil, force = false, ma (from.to_i..to.to_i).step(step.days).each do |current_timestamp| from2 = Time.at(current_timestamp) to2 = from2 + step.days - params = { service: service_name, start_time: from2.strftime('%Y-%m-%d'), end_time: to2.strftime('%Y-%m-%d'), language: language} + params = { service: service_name, start_time: from2.strftime('%Y-%m-%d'), end_time: to2.strftime('%Y-%m-%d')} params[:language] = language if !language.nil? Bot::Fetch.get_claim_reviews(params).each do |claim_review| next if !maximum.nil? && total >= maximum