Skip to content

Commit 5a36172

Browse files
committed
fix : <notifier.py> deleting bad wehbook key in order to send message to the good wehbook for the hearbeat
1 parent 8a75e5d commit 5a36172

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/notifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class DiscordNotifier:
1212
def __init__(self, webhook_url=None, heartbeat_webhook_url=None):
1313
self.webhook_url = webhook_url or os.getenv('DISCORD_WEBHOOK_URL')
14-
self.heartbeat_webhook_url = heartbeat_webhook_url or os.getenv('DISCORD_HEARTBEAT_WEBHOOK_URL', self.webhook_url)
14+
self.heartbeat_webhook_url = heartbeat_webhook_url or os.getenv('DISCORD_HEARTBEAT_WEBHOOK_URL')
1515

1616
def send_heartbeat(self, title, description, color=0x808080, fields=None):
1717
"""Envoie un heartbeat sur le canal dédié"""

0 commit comments

Comments
 (0)