From 60748b8e15c7b6efb2c8e4d28b20022dc1abce39 Mon Sep 17 00:00:00 2001 From: Dan Dembinski Date: Sat, 23 May 2020 22:21:26 -0400 Subject: [PATCH] started working on getting output so it can be parsed and used for logic. --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index dc9841a..ca3b79f 100644 --- a/main.py +++ b/main.py @@ -63,13 +63,14 @@ def download(): # os.system(execute) # exec_command = subprocess.Popen(execute, stdout=subprocess.PIPE) # book['output'] = exec_command.communicate() - exec_command.communicate() + stdout = exec_command.communicate()[0] + # print(stdout) book['command'] = exec_command.args updated.append(book) 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']) def upload_jason():