From 520a8f8071a6ef8106be14636f819444ab67584f Mon Sep 17 00:00:00 2001 From: Utkarsh Shukla Date: Wed, 23 Oct 2024 13:15:26 -0400 Subject: [PATCH] fixes sbc export rake to get year value (#2810) Co-authored-by: Sri Harsha --- lib/tasks/sbc_export.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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