Hopefully fix huddle message deduplication with MIT sync.

(imported from commit bccaa67d02e72b1c444d39b019d5bd87800b1441)
This commit is contained in:
Tim Abbott
2012-09-24 16:30:11 -04:00
parent b21d197418
commit 2a1503fd35
2 changed files with 4 additions and 9 deletions

View File

@@ -192,7 +192,7 @@ def zephyr_to_humbug(options):
def get_zephyrs(last_received):
browser.addheaders.append(('X-CSRFToken', csrf_token))
submit_hash = {'last_received': last_received,
"mit_sync_bot": True}
"mit_sync_bot": 'yes'}
submit_data = urllib.urlencode([(k, v.encode('utf-8')) for k,v in submit_hash.items()])
res = browser.open("https://app.humbughq.com/get_updates_longpoll", submit_data)
return simplejson.loads(res.read())['zephyrs']