Skip to content

Commit

Permalink
Slim Slack notification for discordances
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMadBug committed Sep 15, 2023
1 parent bc90d67 commit 54ed238
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def send_prepared_discordance_notifications(outstanding_notifications: Optional[
labs_str = "\n".join(f"* {lab}" for lab in sorted(all_labs))
nb = NotificationBuilder("Discordance notifications")
nb.add_markdown(
f":fire_engine: :email: Sending Discordance Report <{report_url}|(DR_{entry.discordance_report.pk})> notifications to")
nb.add_field("Labs", labs_str)
nb.add_field("Trigger for notification", entry.cause)
f":fire_engine: :email: Sending Discordance Report <{report_url}|(DR_{entry.discordance_report.pk})> notifications to {entry.lab}")
# nb.add_field("Labs", labs_str)
# nb.add_field("Trigger for notification", entry.cause)
nb.send()

notification = LabNotificationBuilder(lab=entry.lab,
Expand Down

0 comments on commit 54ed238

Please sign in to comment.