diff --git a/lib/tasks/sbc_export.rake b/lib/tasks/sbc_export.rake index fc8962029ac..b96f2c0fdaf 100644 --- a/lib/tasks/sbc_export.rake +++ b/lib/tasks/sbc_export.rake @@ -10,7 +10,7 @@ namespace :sbc do ) file_name = "sbc_export.csv" - years = args[:year].present? ? [args[:year].to_i] : [2020, 2021] + years = ENV["year"].present? ? [ENV["year"].to_i] : [2020, 2021] CSV.open(file_name, "w", force_quotes: true) do |csv| csv << field_names