Commit 211eb81b authored by Ben Waters's avatar Ben Waters

Merge branch 'master' of https://github.com/srct/advisor

parents eb3593fb cc54b8ec
......@@ -189,11 +189,16 @@ def genTrajectories(taken, programs, user):
takencourse.semester=sem
sem.courses = taken
sem.programs = programs
tj = Trajectory(user=user, semesters=[sem])
programCourses = []
try:
tj = Trajectory.objects.get(user=user)
except:
tj = Trajectory(user=user)
tj.save()
tj.semesters=[sem]
programcourses = []
for program in programs:
programcourses+=programCourses(program)
remainingCourses=remainingReqCourses(taken, programCourses)
programcourses = programcourses + programCourses(program)
remainingCourses=remainingReqCourses(taken, programcourses)
while True:
availableCourses=nextCourses(remainingCourses, taken)
semclasses=[]
......
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