diff --git a/common.py b/common.py index b12baf2..5f55922 100644 --- a/common.py +++ b/common.py @@ -18,6 +18,8 @@ class HumbugAPI(): def do_api_query(self, request, url): request["email"] = self.email request["api-key"] = self.api_key + if "client" not in request: + request["client"] = "API" while True: try: res = requests.post(urlparse.urljoin(self.base_url, url), data=request, verify=True) diff --git a/zephyr_mirror.py b/zephyr_mirror.py index 9bef50f..d47eda5 100755 --- a/zephyr_mirror.py +++ b/zephyr_mirror.py @@ -99,6 +99,7 @@ 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):