remove use csv instead of fastercsv
This commit is contained in:
parent
ac866a321d
commit
de112300ca
2 changed files with 4 additions and 15 deletions
|
|
@ -197,14 +197,9 @@ SQL
|
|||
|
||||
# ---------------- HELPER METHODS -------------------------
|
||||
def self.load_waiting_list_csv(filename)
|
||||
require 'csv'
|
||||
csv = filename
|
||||
if RUBY_VERSION.include? "1.8"
|
||||
require 'fastercsv'
|
||||
people = FasterCSV.read(csv)
|
||||
else
|
||||
require 'csv'
|
||||
people = CSV.read(csv)
|
||||
end
|
||||
people = CSV.read(csv)
|
||||
people
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -4,14 +4,8 @@
|
|||
module RakeHelpers
|
||||
|
||||
def process_emails(csv, num_to_process, offset, test=true)
|
||||
if RUBY_VERSION.include? "1.8"
|
||||
|
||||
require 'fastercsv'
|
||||
backers = FasterCSV.read(csv)
|
||||
else
|
||||
require 'csv'
|
||||
backers = CSV.read(csv)
|
||||
end
|
||||
require 'csv'
|
||||
backers = CSV.read(csv)
|
||||
puts "DRY RUN" if test
|
||||
churn_through = 0
|
||||
num_to_process.times do |n|
|
||||
|
|
|
|||
Loading…
Reference in a new issue