Commit ed19b8a3 authored by Arman Sobhi's avatar Arman Sobhi

Merge branch 'master' of gitlab.com:asobhi/GAS-gui

parents 0bc17fac 90a68aa4
venv/
*temp*
*.pyc
*~
\ No newline at end of file
[submodule "gradaudit"]
path = gradaudit
url = git@gitlab.com:saikiran1096/gradaudit
Subproject commit 1bccd6c5a1f2e93312ff2ecd73d8113167e3df06
from flask import Flask, render_template
import os
from flask import Flask, render_template, request
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template('GASGUI.html')
def input_form():
return render_template('GASGUI.html')
@app.route('/submit', methods=['POST'])
def submit():
name = request.form['name']
degree = request.form['degreeType']
major = request.form['MajorList']
year = request.form['YearList']
spec = request.form['SpecializationOfDegree'].lower()
classes = request.form['classesTaken'].replace(' ','')
transcript = '{0}\n'\
'{1},{2},{3},{4}\n'\
'{5}\n'.format(name,
degree, major, year, spec,
classes)
with open('temp.csv', 'w') as fil:
fil.write(transcript)
response = os.popen('./response.sh').read()
return transcript+response
cp temp.csv gradaudit/transcripts/
cd gradaudit
python2 main_writer.py transcripts/temp.csv
sasp main.lp
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