Commit d0cbb93b authored by Chris Reffett's avatar Chris Reffett

Fix error from empty "taken" list

parent a0263ca1
......@@ -179,6 +179,8 @@ def enoughCredits(previousCourses, numRequired):
def genTrajectories(taken, programs, user):
if not taken:
taken = ['']
taken = set(taken)
sem = Semester(number=0, user=user, courses=taken,
programs=programs)
......
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