diff --git a/wallamanta/helpers.py b/wallamanta/helpers.py index 213e81d..9fe0c18 100644 --- a/wallamanta/helpers.py +++ b/wallamanta/helpers.py @@ -283,7 +283,7 @@ def send_to_nr(article, product): "article_web_slug": article['web_slug'], "product_name": product['product_name'], "telegram_user_id": product['telegram_user_id'], - "telegram_user_name": product['telegram_user_name'], + "telegram_name": walladb.get_user(product['telegram_user_id']), "environment": constants.NR_ENV } ) diff --git a/wallamanta/worker.py b/wallamanta/worker.py index 2b31b66..d1a26f0 100644 --- a/wallamanta/worker.py +++ b/wallamanta/worker.py @@ -68,7 +68,7 @@ class Worker: return search_objects def first_run(self, product): - logging.info(f"First run for {product['product_name']} for {walladb.get_user(product['telegram_user_id'])}") + logging.info(f"First run for {product['product_name']} for {walladb.get_user(product['telegram_user_id'])} ({walladb.get_user(product['telegram_user_id'])})") for i in range(5): helpers.random_wait() list = []