Commit 7b4d1327 authored by Zach Perkins's avatar Zach Perkins
Browse files

Fixed bug in get_course

parent a8bb6587
Pipeline #2876 failed with stage
in 2 minutes and 14 seconds
...@@ -46,7 +46,7 @@ semester.save! ...@@ -46,7 +46,7 @@ semester.save!
# course. If it is, grab the pre-existing database entry. # course. If it is, grab the pre-existing database entry.
def get_course(course, all_courses) def get_course(course, all_courses)
all_courses.each do |c| all_courses.each do |c|
if c[:section] == course[:section] if c[:course_number] == course[:course_number]
return c[:db_object] return c[:db_object]
end end
end end
......
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