generated from nathanwoodburn/python-webserver-template
fix: New line in sender for webhook
All checks were successful
Build Docker / BuildImage (push) Successful in 38s
All checks were successful
Build Docker / BuildImage (push) Successful in 38s
This commit is contained in:
parent
a4ce7abfaa
commit
7592165ffc
@ -303,8 +303,8 @@ def send_email(email, data):
|
||||
|
||||
def send_webhook(webhook, data):
|
||||
print(f"Sending webhook to {webhook}")
|
||||
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"]
|
||||
|
||||
message = md(message)
|
||||
|
Loading…
Reference in New Issue
Block a user