Make the client name a global property of the Humbug client.

(imported from commit 3401686986a2670b3636e99fb11761c07a934bca)
This commit is contained in:
Tim Abbott
2012-10-23 10:59:42 -04:00
parent 02ec29a0ca
commit de5d48f51f
2 changed files with 4 additions and 4 deletions

View File

@@ -69,6 +69,7 @@ import api.common
humbug_client = api.common.HumbugAPI(email=options.user + "@mit.edu",
api_key=api_key,
verbose=True,
client="zephyr_mirror",
site=options.site)
start_time = time.time()
@@ -99,7 +100,6 @@ def send_humbug(zeph):
elif isinstance(zeph[key], str):
zeph[key] = zeph[key].decode("utf-8")
zeph['client'] = "zephyr_mirror"
return humbug_client.send_message(zeph)
def fetch_fullname(username):