Properly split and strip words. fixes #137

This commit is contained in:
Ruud committed 2012-04-25 21:57:47 +02:00
1 parent 269fc66e4c
commit ac15df31d8
8 files changed
+14 -14

No files matched your search

@@ -10,7 +10,7 @@ class NotifyMyWP(Notification):
def notify(self, message = '', data = {}):
if self.isDisabled(): return
keys = self.conf('api_key').split(',')
keys = [x.strip() for x in self.conf('api_key').split(',')]
p = PyNMWP(keys, self.conf('dev_key'))
response = p.push(application = self.default_title, event = message, description = message, priority = self.conf('priority'), batch_mode = len(keys) > 1)