Skip to content

Commit 19f8d5f

Browse files
committed
Swapped push notification library
1 parent 9567b85 commit 19f8d5f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

vfxClientToolkit/utils/push.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
from pushover import Pushover
21
import vfxClientToolkit.api.config as vfxConfig
2+
from pushover import Client
33

44
CONFIG_DATA = vfxConfig.getBundles()
55

66
def sendPushNotification(title, message):
7-
po = Pushover(CONFIG_DATA['push']['settings']['token'])
8-
po.user(CONFIG_DATA['push']['settings']['user'])
9-
msg = po.msg(message)
10-
msg.set("vfxClientToolkit", title)
11-
po.send(msg)
12-
7+
client = Client(CONFIG_DATA['push']['settings']['user'], api_token=CONFIG_DATA['push']['settings']['token'])
8+
client.send_message(message, title=title)
139

0 commit comments

Comments
 (0)