Skip to content

Commit

Permalink
Fix declaration position of defaultPageStyle var (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
achauphan committed Feb 13, 2024
1 parent 31b4d90 commit 1b2601b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,10 @@ def main():
# Finish HTML body paragraph
cdashReportData.htmlEmailBodyTop += "\n</p>"

defaultPageStyle = CDQAR.getDefaultHtmlPageStyleStr()

if writeEmailToFile:
print("\nWriting HTML to file: "+writeEmailToFile+" ...")
defaultPageStyle = CDQAR.getDefaultHtmlPageStyleStr()
htmlStr = CDQAR.getFullCDashHtmlReportPageStr(cdashReportData,
pageTitle=summaryLine, pageStyle=defaultPageStyle)
# print(htmlStr)
Expand All @@ -278,8 +279,7 @@ def main():
emailAddress = emailAddress.strip()
print("\nSending email to '"+emailAddress+"' ...")
msg=CDQAR.createHtmlMimeEmail(
sendEmailFrom, emailAddress, summaryLine, "",
htmlStr)
sendEmailFrom, emailAddress, summaryLine, "", htmlStr)
CDQAR.sendMineEmail(msg)


Expand Down

0 comments on commit 1b2601b

Please sign in to comment.