From 6de49e8874474877fa295af51ae378cc1f223406 Mon Sep 17 00:00:00 2001 From: piair Date: Tue, 27 Feb 2024 00:34:30 +0100 Subject: [PATCH] removing custom_start as it's not useful anymore with the WebUI --- V6.py | 58 ---------------------------------------------------------- 1 file changed, 58 deletions(-) diff --git a/V6.py b/V6.py index 7c237cc..3cc6fd2 100755 --- a/V6.py +++ b/V6.py @@ -745,64 +745,6 @@ def dev(): pass -def CustomStart(): - if not g.islinux: - raise NameError( - 'You need to be on linux to do that, due to the utilisation of a module named enquieries, sorry.') - global driver - - system("clear") # clear from previous command to allow a clean choice - actions = ["tout", "daily", "pc", "mobile", "log_points", "fidelity", "dev"] - Actions = enquiries.choose("quels Actions ?", actions, multi=True) - liste = select_accounts() - g.start_time = time() # Reset timer to the start of the actions - - for cred in liste: - g._mail = cred[0] - g._password = cred[1] - if len(cred) == 3: - g._otp = TOTP(cred[2]) - - driver = create_driver() - driver.implicitly_wait(3) - if login(driver) != "STOP": - if "tout" in Actions: - daily_routine(True) - if "daily" in Actions: - # input("0") - try: - all_cards() - except Exception as e: - log_error(e) - if "pc" in Actions: - try: - bing_pc_search() - except Exception as e: - log_error(e) - if "mobile" in Actions: - try: - bing_mobile_search() - except Exception as e: - log_error(e) - if "fidelity" in Actions: - try: - fidelity() - except Exception as e: - log_error(e) - if "dev" in Actions: - try: - dev() - except Exception as e: - printf(e) - break - if not "tout" in Actions: - try: - log_points(g._mail) - except Exception as e: - printf(f"CustomStart {e}") - driver.quit() - - def json_start(json): global driver display = SmartDisplay(backend="xvnc", size=(1920, 1080), rfbport=2345, color_depth=24)