better fulllog logic

This commit is contained in:
piair 2022-06-20 18:24:29 +02:00
parent 1eb606a62c
commit 3376eaf8ac
1 changed files with 6 additions and 7 deletions

13
V4.py
View File

@ -221,7 +221,7 @@ def FirefoxDriver(mobile=False, Headless=Headless):
def printf(txt, end="", Mobdriver=driver): def printf(txt, end="", Mobdriver=driver):
if Log: if Log:
print(Timer(txt)) print(Timer(txt))
elif FullLog: if FullLog:
try : try :
LogError(Timer(txt), Mobdriver=Mobdriver) LogError(Timer(txt), Mobdriver=Mobdriver)
except Exception as e: except Exception as e:
@ -241,16 +241,15 @@ def CustomSleep(temps):
" . ", " . ",
" . ", " . ",
] ]
passe = 0
for i in range(int(temps)): for i in range(int(temps)):
c = True
for i in range(8): for i in range(8):
sleep(0.125) sleep(0.125)
print(points[i], end="\r") passe =+ 0.125
print(f"{points[i]} {float(temps) - passe}", end="\r")
print(" ", end="\r")
if c:
print(". ", end="\r")
sleep(temps - int(temps))
print("\n")
else: else:
sleep(temps) sleep(temps)