generated from nathanwoodburn/python-webserver-template
fix: Remove line spacing to fix errors
All checks were successful
Build Docker / BuildImage (push) Successful in 50s
All checks were successful
Build Docker / BuildImage (push) Successful in 50s
This commit is contained in:
parent
039a24bc64
commit
a4ce7abfaa
@ -273,8 +273,8 @@ def send_email(email, data):
|
|||||||
headers = {
|
headers = {
|
||||||
"X-FreeScout-API-Key": os.getenv("FREESCOUT_API_KEY"),
|
"X-FreeScout-API-Key": os.getenv("FREESCOUT_API_KEY"),
|
||||||
}
|
}
|
||||||
sender = f"{data['createdBy']['firstName']} {
|
sender = f"{data['createdBy']['firstName']} "
|
||||||
data['createdBy']['lastName']} ({data['createdBy']['email']})"
|
sender += f"{data['createdBy']['lastName']} ({data['createdBy']['email']})"
|
||||||
message = data["_embedded"]["threads"][0]["body"]
|
message = data["_embedded"]["threads"][0]["body"]
|
||||||
|
|
||||||
body = {
|
body = {
|
||||||
@ -310,7 +310,7 @@ def send_webhook(webhook, data):
|
|||||||
message = md(message)
|
message = md(message)
|
||||||
|
|
||||||
trimmed = len(message) > 3999
|
trimmed = len(message) > 3999
|
||||||
# Only keep 4000 chars
|
# Only keep 4000 chars
|
||||||
message = message[:4000]
|
message = message[:4000]
|
||||||
|
|
||||||
subject = data["subject"]
|
subject = data["subject"]
|
||||||
|
Loading…
Reference in New Issue
Block a user