Skip to content

Commit

Permalink
fix _construct_payload function: remove content name split
Browse files Browse the repository at this point in the history
  • Loading branch information
kistoth committed Sep 19, 2024
1 parent 0effbc0 commit e7b4119
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions superset/reports/notifications/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,10 @@ def _construct_payload(self) -> Dict[str, Optional[str] | Optional[int]]:
"""
Constructs the payload for the webhook notification.
"""
notification_name, content_name = self._content.name.split(":")
return {
"notification_name": notification_name,
"name": self._content.name,
"notification_id": self._content.id,
"notification_type": self._content.header_data.get("notification_type"),
"content_name": content_name.strip(),
"content_type": self._content.header_data.get("notification_source"),
"content_id": (
self._content.header_data.get("chart_id")
Expand Down

0 comments on commit e7b4119

Please sign in to comment.