diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-07-07 12:22:30 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-07-07 12:22:30 +0530 |
commit | 6a67fd7e8b7e3244fb009e7101e5c501bf2439d8 (patch) | |
tree | 8a441b173047b57fa4a577e599df0370b86582e9 /app/dock_docker.py | |
parent | c74428d94a79087ca5aed2a23e1535864c924124 (diff) |
removed extra files and changed zi to zipArchive
Diffstat (limited to 'app/dock_docker.py')
-rw-r--r-- | app/dock_docker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/dock_docker.py b/app/dock_docker.py index 2b0c959..e1b17d1 100644 --- a/app/dock_docker.py +++ b/app/dock_docker.py @@ -8,7 +8,7 @@ mycursor.execute(sql_select_Query) records = mycursor.fetchall() -def email(zi): +def email(zipArchive): import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText @@ -26,7 +26,7 @@ def email(zi): msg.attach(MIMEText(body, 'plain')) filename = "Curie_Web_Results_Job_ID_" + str(jobID) + ".zip" - attachment = open((str(zi) + ".zip"), "rb") + attachment = open((str(zipArchive) + ".zip"), "rb") p = MIMEBase('application', 'octet-stream') p.set_payload((attachment).read()) encoders.encode_base64(p) |