Commit 848530e2 authored by Daniel W Bond's avatar Daniel W Bond
Browse files

creating trajectories stuff-- getGenEds functions, some musing

parent c3cb2084
......@@ -6,6 +6,8 @@ GMU Advisor | Create
{% block content %}
# remaining classes for program 1
<p>Returns the student's possible courses after their post from index</p>
<p>Student then selects courses, send a post, save as a trajectory, then the pge reloads with the new information for the selecting.</p>
<p>Because there are so many gen eds, those merely appear as a button for "Science" until they are selected, upon which a list appears and a student can make their selection.</p>
......@@ -14,6 +16,17 @@ GMU Advisor | Create
<p>Save buttons-- save buttons everywhere.</p>
<p>Save your trajectory semester by semester.</p>
# remaining classes for program 2
# remaining classes for minor 1
# remaining classes for minor 2, etc
# remaining classes for gened program
<h4>Gen Eds</h4>
{{ collection.name }}
<p><h1>We still have the corequisite problem unresolved</h1></p>
......
{% extends 'layouts/base.html' %}
{% block title %}
GMU Advisor | Student's Name
GMU Advisor | {{ student.user.first_name }} {{ student.user.last_name }}
{% endblock %}
{% block content %}
......
......@@ -7,18 +7,22 @@
# furthermore, you're not going to have to worry about whether or not
# a course is
BEYOND PREREQ COREQ
#############################################
Information that is passed in from the initial request
separate the input into two list for ease
this is also better because you can mandate how many of each is required
(programList, maxProgramNumber)
programs [list]
"Through 200 level"
minors [list]
"At least 12 credits of xxx"
boolean isHonors
"One of "these" and two of "those""
--> getGenEds
"electives"
"take two sequences of"
OTHER THOUGHTS
#############################################
......
......@@ -36,14 +36,38 @@ def nextCourses(coursesTaken, 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):
genEdList = []
if isHonors:
genEdList.append("Honors")
# will require a program in the database called "Honors"
return genEdList
else:
firstMajorType = program[0].degreeType
genEdList.append(firstMajorType)
try:
secondMajor = program[1].degreeType
if firstMajorType is secondMajorType
genEdList.append(secondMajorType)
return genEdList
except:
return genEdList
# how does one deal with "you have to take the coreq at the same time?"
def topTrajectories(trajectories):
topTrajectories = []
# trajectories take trajectories
# representing how you build up semester by semester
# find the one on the top of the pile
return topTrajectories
def getGenEds(programList, honorsBoolean):
# page render functions
# homepage, sign in to save or compare multiple options
......@@ -66,6 +90,10 @@ def about(request):
# student creates trajectory
def makeTrajectory(request, slug):
# needs to get list of programs from user
programs = []
#
return render(request, 'maketrajectory.html', {
},
......@@ -86,6 +114,7 @@ def student(request, slug):
student = get_object_or_404(Student, user__username=username)
trajectories = Trajectory.objects.filter(student__user__username=username)
topTrajectories = topTrajectories(trajectories)
# until the topTrajectories function is written, this is a blank list
return render(request, 'student.html', {
......
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