From 4a2ac789f5e2ff7088ff34cb9d3642c54c25110d Mon Sep 17 00:00:00 2001 From: Zino Date: Sat, 29 Oct 2016 19:41:39 -0500 Subject: [PATCH] Update default scrape yrterm --- lib/tasks/scrape.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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