From c3d49cd093508905803d2d85d36683fb71736e65 Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 29 Aug 2022 11:44:35 +0200 Subject: [PATCH] fixed double login issue --- V4.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/V4.py b/V4.py index b110b89..db2437c 100755 --- a/V4.py +++ b/V4.py @@ -990,9 +990,10 @@ def Fidelite(): LogError("Fidélité" + str(e)) -def DailyRoutine(): +def DailyRoutine(custom = False): + if not custom : + MainWindows = login() - MainWindows = login() if MainWindows != "STOP" : try: AllCard() @@ -1035,7 +1036,7 @@ def dev(): def CustomStart(Credentials): if not IsLinux : - raise NameError('You need to be on linux to do that, sorry.') + raise NameError('You need to be on linux to do that, due to the utilisation of a module named enquieries, sorry.') global driver global _mail global _password @@ -1056,7 +1057,7 @@ def CustomStart(Credentials): if login() != "STOP": if "tout" in Actions: - DailyRoutine() + DailyRoutine(True) if "daily" in Actions: try: