Renaming of variables

parent 6f729735
......@@ -38,22 +38,25 @@ def input_form():
courses = map(lambda x: x[0], course_data)
courses = ','.join(courses)
return render_template('GASGUI.html', classes=courses)
return render_template('home.html', classes=courses)
@app.route('/submit', methods=['POST'])
def submit():
name = 'student'
degree = request.form['degreeType']
major = request.form['MajorList']
year = request.form['YearList']
spec = request.form['SpecializationOfDegree'].lower()
classes = request.form['classesTaken']
degree = request.form['degree_type']
major = request.form['major']
year = request.form['year']
spec = request.form['specialization'].lower()
classes = request.form['classes']
classes = re.sub(r'\s+', '', classes)
classes = classes.rstrip(',')
classes = classes.split(',')
if classes == ['']:
classes = []
transcript = util.Transcript(
name, degree, major, year, spec, classes)
......
This diff is collapsed.
This diff is collapsed.
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