Fixed AttributeError in NtfyRouter #5

Squashed commit of the following:

commit 49daddff83a18e0eba4ab04899937f8962df2379
Author: Ashish D'Souza <sudouser512@gmail.com>
Date:   Wed Nov 22 18:55:58 2023 -0600

    Fixed wrong variable name
This commit is contained in:
Ashish D'Souza 2023-11-22 18:56:31 -06:00
parent a14ae8581a
commit a3b2e0e22c
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class NtfyRouter:
if topic in self._formatters['notification']:
notification_args = {notification_arg: self._formatters['notification'][topic][notification_arg](topic=topic, title=title, message=message) for notification_arg in self._formatters['notification'][topic]}
self._rabbitmq_publisher.send_notification(user='ashish', priority='high', **notification_args)
elif topic in self._call_topics:
elif topic in self._formatters['call']:
call_args = {call_arg: self._formatters['call'][topic][call_arg](topic=topic, title=title, message=message) for call_arg in self._formatters['call'][topic]}
self._rabbitmq_publisher.send_call(user='ashish', **call_args)