started working on getting output so it can be parsed and used for logic.

This commit is contained in:
2020-05-23 22:21:26 -04:00
parent e38d76fbd7
commit 60748b8e15

View File

@@ -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():