fix: Remove line spacing to fix errors
All checks were successful
Build Docker / BuildImage (push) Successful in 50s

This commit is contained in:
Nathan Woodburn 2024-10-04 20:54:09 +10:00
parent 039a24bc64
commit a4ce7abfaa
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -273,8 +273,8 @@ def send_email(email, data):
headers = {
"X-FreeScout-API-Key": os.getenv("FREESCOUT_API_KEY"),
}
sender = f"{data['createdBy']['firstName']} {
data['createdBy']['lastName']} ({data['createdBy']['email']})"
sender = f"{data['createdBy']['firstName']} "
sender += f"{data['createdBy']['lastName']} ({data['createdBy']['email']})"
message = data["_embedded"]["threads"][0]["body"]
body = {
@ -310,7 +310,7 @@ def send_webhook(webhook, data):
message = md(message)
trimmed = len(message) > 3999
# Only keep 4000 chars
# Only keep 4000 chars
message = message[:4000]
subject = data["subject"]