Commit 98cd5ae0 authored by Zac Wood's avatar Zac Wood

add option to seed script allowing for easy updates of the current semester

parent 04b7bf3c
Pipeline #3597 passed with stages
in 29 minutes and 34 seconds
......@@ -112,7 +112,14 @@ def main
# wipe_db
parser = PatriotWeb::Parser.new
semesters = parser.parse_semesters[0..6] # expand to include however many semesters you want
semesters = if ARGV.first == "update"
[parser.parse_semesters.first]
else
# expand to include however many semesters you want
parser.parse_semesters[0..6]
end
courses = nil
semesters.each do |semester|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment