Skip to content

Commit

Permalink
One more change for options
Browse files Browse the repository at this point in the history
  • Loading branch information
JaciBrunning committed Oct 27, 2020
1 parent 7ab9bc8 commit 227a798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/update_single_course_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def parse_organisation url, doc
elsif td.count == 4
# Is an optional or elective unit
creditVal = td[3].text.to_f
type = td[1].text.include?("ELECTIVE") ? :elective : td[1].text.include?("OPTIONAL") ? :optional : nil
type = td[1].text.include?("ELECTIVE") ? :elective : td[1].text.include?("OPTION") ? :optional : nil
code = Base64.encode64(Digest::MD5.hexdigest("#{url}/#{planned}/#{type}")).strip[0..7]
if type
entries << {
Expand Down

0 comments on commit 227a798

Please sign in to comment.