diff --git a/lib/tasks/scrape.rake b/lib/tasks/scrape.rake index b1f8aa3..1573542 100644 --- a/lib/tasks/scrape.rake +++ b/lib/tasks/scrape.rake @@ -22,7 +22,7 @@ task :scrape => [:environment] do depts = Department.all depts = ENV['depts'].split(",").map { |d| Department.find_by_short(d) } if ENV['depts'] depts = Department.where(school:ENV['school']) if ENV['school'] - yrterm = (ENV['yrterm'] || 20171).to_i + yrterm = (ENV['yrterm'] || 20172).to_i puts "#{Time.now.to_s}" puts "Term: #{yrterm}" @@ -36,4 +36,4 @@ task :scrape => [:environment] do end s.destroy_sectionless_courses -end \ No newline at end of file +end