Fixed telegram_user_name

This commit is contained in:
Joan
2023-07-04 13:51:48 +02:00
parent 67b1422f88
commit 63c9de8e1b
2 changed files with 2 additions and 2 deletions

View File

@@ -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
}
)

View File

@@ -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 = []