Permalink
Browse files

It seems that the problem is a silent fail because notify.io refuses …

…the connection, no idea why
  • Loading branch information...
1 parent 45d5c8b commit 2d1bf5edd30723e21baf812c72688224d932574f @DFectuoso DFectuoso committed Apr 29, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 main.py
View
@@ -50,10 +50,11 @@ def str_to_bool(str):
def sendNotifyIoNotifications(comment):
profiles = Profile.all().filter('emailNotification =',True)
for profile in profiles:
- md5email = hashlib.md5(str(profile.user)).digest()
+ md5email = hashlib.md5(str(profile.user)).hexdigest()
values = {'text': 'test', 'dsadsa':'dsadsa'}
- logging.error("dsadsadsa %s", str(md5email))
- req = urllib2.Request("http://api.notify.io/v1/notify/" + str(md5email) + "?api_key=" + NOTIFYIO_KEY,urllib.urlencode(values))
+ url = "http://api.notify.io/v1/notify/" + str(md5email) + "?api_key=" + NOTIFYIO_KEY
+ logging.error("dsadsadsa %s", url)
+ req = urllib2.Request(url,urllib.urlencode(values))
urllib2.urlopen(req)
def sendEmailNotifications(update):

0 comments on commit 2d1bf5e

Please sign in to comment.