We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ab9bc8 commit 227a798Copy full SHA for 227a798
app/jobs/update_single_course_job.rb
@@ -77,7 +77,7 @@ def parse_organisation url, doc
77
elsif td.count == 4
78
# Is an optional or elective unit
79
creditVal = td[3].text.to_f
80
- 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
81
code = Base64.encode64(Digest::MD5.hexdigest("#{url}/#{planned}/#{type}")).strip[0..7]
82
if type
83
entries << {
0 commit comments