zephyr_mirror: Truncate instances for now.

(imported from commit 43487c86c4847baba4500665a735547c9d8e8098)
This commit is contained in:
Tim Abbott 2012-09-27 15:17:53 -04:00
parent 1a5c18b12c
commit 5a80f5248a
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@ def send_humbug(zeph):
zeph["recipient"] = zeph["recipient"].lower().replace("athena.mit.edu", "mit.edu")
zeph['fullname'] = username_to_fullname(zeph['sender'])
zeph['shortname'] = zeph['sender'].split('@')[0]
if "instance" in zeph:
zeph["instance"] = zeph["instance"][:30]
browser.addheaders.append(('X-CSRFToken', csrf_token))
humbug_data = []