Skip to content

Commit

Permalink
Fixing more compact Gotify message
Browse files Browse the repository at this point in the history
  • Loading branch information
LawiK974 committed Jul 17, 2024
1 parent 46d1552 commit 47a743a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kube_notify/notifications/gotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def send_gotify_message(
message = f"**{description}**\\\n"

for key, value in fields.items():
message += f"**{key} : **{value}\\\n"
message += f"**{key} :** {value}\\\n"
data = {
"title": title,
"message": message,
"message": message.strip().strip("\\"),
"extras": {"client::display": {"contentType": "text/markdown"}},
}
response = requests.post(url, headers=headers, data=json.dumps(data))
Expand Down

0 comments on commit 47a743a

Please sign in to comment.