Implemented ugly response

parent 12ded5f5
venv/
temp*
*temp*
*.pyc
*~
\ No newline at end of file
......@@ -11,19 +11,19 @@ def input_form():
@app.route('/submit', methods=['POST'])
def submit():
name = request.form['name'] + '\n'
degree = request.form['degreeType'].lower()
major = request.form['MajorList'].lower()
year = request.form['YearList'] + ','
name = request.form['name']
degree = request.form['degreeType']
major = request.form['MajorList']
year = request.form['YearList']
spec = request.form['SpecializationOfDegree'].lower()
classes = request.form['classes'] + '\n'
transcript = '{0}'\
'{1},{2},{3}'\
'{4}'\
'{5}'.format(name, degree, major,
year, spec, classes)
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('./temp.sh').read()
return 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