well, SadPanda is still here ;(

This commit is contained in:
piair 2023-04-09 23:41:31 +02:00
parent 8726785dc8
commit 12a6968ee0
3 changed files with 6 additions and 6 deletions

8
V5.py
View File

@ -474,10 +474,10 @@ def login(ldriver):
ldriver.refresh() ldriver.refresh()
rgpd_popup(ldriver) # Ultra important rgpd_popup(ldriver) # Ultra important
ldriver.get("https://www.bing.com/rewardsapp/flyout") ldriver.get("https://www.bing.com/rewardsapp/flyout")
if "SadPanda.svg" in ldriver.page_source : #if "SadPanda.svg" in ldriver.page_source :
log_error('test SadPanda before', ldriver) # log_error('test SadPanda before', ldriver)
driver.execute_script("location.reload(true);") # driver.execute_script("location.reload(true);")
log_error('test SadPanda after', ldriver) # log_error('test SadPanda after', ldriver)
if not('>Tableau de bord' in ldriver.page_source): if not('>Tableau de bord' in ldriver.page_source):
try : try :
ldriver.find_element(By.CSS_SELECTOR, "[h='ID=RewardsFlyout,2.1']").click() ldriver.find_element(By.CSS_SELECTOR, "[h='ID=RewardsFlyout,2.1']").click()

View File

@ -82,7 +82,7 @@ parser.add_argument(
) )
parser.add_argument( parser.add_argument(
"--updated", "--version",
help="display a message on discord to tell that the bot have been updated", help="display a message on discord to tell that the bot have been updated",
dest="update_version", dest="update_version",
default="None" default="None"

View File

@ -1 +1 @@
v5.5.1 v5.5.2