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