Commit 171858f7 authored by Chris Reffett's avatar Chris Reffett

fix the bug from the science fix

parent 8031bd84
......@@ -22,9 +22,11 @@ def programCourses(program):
courses.remove(course)
numadded = 0
for newcourse in coursegroup.courses.all():
if numadded < coursegroup.numneeded
courses.append(newcourse)
numadded++
if numadded < coursegroup.numneeded:
courses.append(newcourse)
numadded+=1
else:
break
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