started working on getting output so it can be parsed and used for logic.
This commit is contained in:
5
main.py
5
main.py
@@ -63,13 +63,14 @@ def download():
|
|||||||
# os.system(execute)
|
# os.system(execute)
|
||||||
# exec_command = subprocess.Popen(execute, stdout=subprocess.PIPE)
|
# exec_command = subprocess.Popen(execute, stdout=subprocess.PIPE)
|
||||||
# book['output'] = exec_command.communicate()
|
# book['output'] = exec_command.communicate()
|
||||||
exec_command.communicate()
|
stdout = exec_command.communicate()[0]
|
||||||
|
# print(stdout)
|
||||||
book['command'] = exec_command.args
|
book['command'] = exec_command.args
|
||||||
|
|
||||||
updated.append(book)
|
updated.append(book)
|
||||||
|
|
||||||
missing = check(passin=1)
|
missing = check(passin=1)
|
||||||
return jsonify(manga=updated, missingFlags=missing[0], missingManga=missing[1])
|
return jsonify(manga=updated, missingFlags=missing[0], missingManga=missing[1], test=stdout)
|
||||||
|
|
||||||
@app.route('/upload', methods=['GET'])
|
@app.route('/upload', methods=['GET'])
|
||||||
def upload_jason():
|
def upload_jason():
|
||||||
|
|||||||
Reference in New Issue
Block a user