Updated to use new functionality in gradaudit

parent f2a55f1c
Subproject commit a042b00ee93843841d175013b10a8d30731e2a15
Subproject commit 87e7398ffb4e6e899c62f81bd6cc71c447d47062
import os
import gradaudit.gradaudit as gradaudit
from flask import Flask, render_template, request
app = Flask(__name__)
......@@ -22,8 +24,11 @@ def submit():
degree, major, year, spec,
student_data = gradaudit.parse_transcript(transcript)
with open('temp.csv', 'w') as fil:
response = os.popen('./response.sh').read()
return transcript+response
main_contents = gradaudit.gen_main(*student_data)
with open('main.lp','w') as main_file:
response = os.popen('sasp main.lp').read()
return response
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