Commit 70be733a authored by Daniel W Bond's avatar Daniel W Bond
Browse files

inconsequential changes

parent 15ec6d4d
......@@ -100,11 +100,16 @@ class Major(Program):
class Minor(Program):
major = models.ForeignKey('Major')
class Meta:
pass
class GenEd(Program):
# set to B.A. or B.S. by default
# Options
# B.A.
# B.S.
# Honors Science
# Honors Liberal Arts
pass
class Trajectory(TimeStampedModel):
......@@ -114,10 +119,10 @@ class Trajectory(TimeStampedModel):
slug = AutoSlugField(populate_from='name',unique=True)
owner = models.ForeignKey(User)
# Takes courses
# Takes courses, CAN BE EMPTY- FIX
previousCourses = models.ManyToManyField('Trajectory',)
# the newly added courses for that trajectory
# the newly added courses for that trajectory, CAN BE EMPTY-- FIX
courses = models.ManyToManyField('Course',)
# def getPreviousTrajectory(Trajectory):
......
......@@ -32,8 +32,7 @@ def nextCourses(coursesTaken, remainingReqCourses):
possibility = allPrereqCoreq(course, remainingReqCourses)
nextCourses.append(possibility)
return nextCourses
# this algorithm sucks because if there's a change to the number of allowed
# majors then this will break
def getGenEds(programs, isHonors):
# this algorithm sucks because if there's a change to the number of allowed
# majors then this will break
......@@ -78,6 +77,7 @@ def fulfilledReq(coursesTaken, courseCollection, numReq):
if finished >= numReq:
courseCollection.isCompleted = True
break
def topTrajectories(trajectories):
""" Only shows the uppermost level of trajectories--
there's no reason that *all* of the previously loaded classes
......
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