Commit 8031bd84 authored by Chris Reffett's avatar Chris Reffett

fix adding all the science bug

parent 4f7c09a4
......@@ -20,8 +20,11 @@ def programCourses(program):
coursegroup = CourseGroup.objects.get(title=course.title)
repeat = True
courses.remove(course)
numadded = 0
for newcourse in coursegroup.courses.all():
if numadded < coursegroup.numneeded
courses.append(newcourse)
numadded++
return courses
......
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