Skip to content

Commit

Permalink
Fix payment range for sponsor_logo_s.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Aug 15, 2024
1 parent 8f1c259 commit 1d65816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/merge.cr
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ all_sponsors.sort_by! { |s| {-s.last_payment, -s.all_time, s.since, s.name} }

write_csv("sponsors.csv", all_sponsors.select(&.listed?))
write_csv("sponsor_logos_l.csv", all_sponsors.select { |sponsor| sponsor.last_payment.to_i > 1000 })
write_csv("sponsor_logos_s.csv", all_sponsors.select { |sponsor| sponsor.last_payment.to_i.in?(250...750) })
write_csv("sponsor_logos_s.csv", all_sponsors.select { |sponsor| sponsor.last_payment.to_i.in?(750...1000) })

def write_csv(filename, sponsors)
open_csv(filename) do |csv|
Expand Down

0 comments on commit 1d65816

Please sign in to comment.