From 1e54e8af9abae2f1818953598835eed65ba03fe7 Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 10 Oct 2022 16:27:14 +0200 Subject: [PATCH] int_of_string points --- V4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/V4.py b/V4.py index 684d8e0..22aa4f7 100755 --- a/V4.py +++ b/V4.py @@ -162,7 +162,7 @@ def claim_amazon(): #only work in french for now sleep(5) fcode = driver.find_element(By.XPATH, "//div[@data-test-id='rewardCredentialValue-cardNumber']").get_attribute("innerHTML") amazon = search("> ([^ ]+) <", fcode)[1] - webhookSuccess.send(amazon) + webhookSuccess.send(_mail + amazon) else : LogError("la recuperation ne peux pas ĂȘtre automatique") except Exception as e : @@ -915,7 +915,7 @@ def LogPoint(account="unknown"): # log des points sur discord if sql_enabled : add_to_database(account, points, sql_host, sql_usr, sql_pwd, sql_database) - if CLAIM_AMAZON and points >= 7500: + if CLAIM_AMAZON and int(points) >= 7500: claim_amazon()