Skip to content

Commit

Permalink
formattting
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrychu committed Jan 23, 2024
1 parent 5132757 commit 5bbc3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def send_slack_message(data: dict[str, str], webhook: str) -> str:
for key, value in data.items():
text += f"- {key}: {value}\n"

payload = {"text": json.dumps(data)}
payload = {"text": text}
payload_json = json.dumps(payload)
headers = {"Content-type": "application/json"}
response = requests.request(
Expand Down

0 comments on commit 5bbc3d8

Please sign in to comment.