Skip to content

Commit

Permalink
fixes sbc export rake to get year value (#2810)
Browse files Browse the repository at this point in the history
Co-authored-by: Sri Harsha <sriharsha.poosa@gmail.com>
  • Loading branch information
utkarsh7989 and sri49 authored Oct 23, 2024
1 parent db58bd6 commit 520a8f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/sbc_export.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 520a8f8

Please sign in to comment.