From 504c118c5535d3e2e1c943e9ae354b1048604be3 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Fri, 20 Dec 2013 21:42:03 +0100 Subject: Several modifications --- weechat_notify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'weechat_notify.py') diff --git a/weechat_notify.py b/weechat_notify.py index f070551..897f26d 100755 --- a/weechat_notify.py +++ b/weechat_notify.py @@ -13,6 +13,7 @@ POLLING_FREQUENCY = 10 NOTIFICATION_URL = 'https://simeon.simeonov.no:40004/notifications/' TIMEOUT_SEC = 3 + def poll_notifications(scheduler): """ """ @@ -20,7 +21,7 @@ def poll_notifications(scheduler): req = urllib2.Request(NOTIFICATION_URL) response = urllib2.urlopen(req) response_str = response.read() - + entries = json.loads(response_str) for entry in entries: n = pynotify.Notification('IRC', entry, 'dialog-information') -- cgit v1.3