Fixed a problem in email sending when attach/embed flag was removed.

This commit is contained in:
JohnKent
2019-07-10 23:12:21 -04:00
parent af033464ad
commit 8bc23dc8b1
2 changed files with 3 additions and 13 deletions

3
web.py
View File

@@ -104,7 +104,6 @@ def send_statement():
loanFile = request.form["loan"]
subject = request.form["subject"]
message = request.form["message"]
style = request.form["style"]
loan = loadLoanInformation(getFullPathofLoanFile(loanFile))
amortizeLoan(loan)
@@ -119,8 +118,6 @@ def send_statement():
if 'pdf' in request.form:
pdfInterimReport = transformTemplate(selectTemplate('pdf'), loan)
pdfReport = createPDF(pdfInterimReport)
if style == 'embed':
style = 'attach'
reportCreated = True
if ('html' in request.form) or (reportCreated is False):