Skip to content

Commit 227a798

Browse files
committed
One more change for options
1 parent 7ab9bc8 commit 227a798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/jobs/update_single_course_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def parse_organisation url, doc
7777
elsif td.count == 4
7878
# Is an optional or elective unit
7979
creditVal = td[3].text.to_f
80-
type = td[1].text.include?("ELECTIVE") ? :elective : td[1].text.include?("OPTIONAL") ? :optional : nil
80+
type = td[1].text.include?("ELECTIVE") ? :elective : td[1].text.include?("OPTION") ? :optional : nil
8181
code = Base64.encode64(Digest::MD5.hexdigest("#{url}/#{planned}/#{type}")).strip[0..7]
8282
if type
8383
entries << {

0 commit comments

Comments
 (0)