From 4118686ec19993ec4c158f9f4fd7335931121fd5 Mon Sep 17 00:00:00 2001 From: Dan Dembinski Date: Fri, 27 Mar 2020 00:25:25 -0400 Subject: [PATCH] Made a change to the subprocess call to hopefully stop the json error until I can figure that out. Also added the templates directory to the Dockerfile --- Dockerfile | 1 + main.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 940e5c5..0780da0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM python:3 ADD main.py / ADD requirements.txt / +ADD templates /templates VOLUME /download/ diff --git a/main.py b/main.py index 4215ad7..134314e 100644 --- a/main.py +++ b/main.py @@ -61,8 +61,9 @@ def download(): # os.system(execute) # exec_command = subprocess.Popen(execute, stdout=subprocess.PIPE) - book['output'] = exec_command.communicate() - print(exec_command.args) + # book['output'] = exec_command.communicate() + exec_command.communicate() + book['command'] = exec_command.args updated.append(book)