From 3376eaf8acef9c7c579a9ae03067d29bbe4deee5 Mon Sep 17 00:00:00 2001 From: piair Date: Mon, 20 Jun 2022 18:24:29 +0200 Subject: [PATCH] better fulllog logic --- V4.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/V4.py b/V4.py index 650f9e0..ce5ced0 100755 --- a/V4.py +++ b/V4.py @@ -221,7 +221,7 @@ def FirefoxDriver(mobile=False, Headless=Headless): def printf(txt, end="", Mobdriver=driver): if Log: print(Timer(txt)) - elif FullLog: + if FullLog: try : LogError(Timer(txt), Mobdriver=Mobdriver) except Exception as e: @@ -241,16 +241,15 @@ def CustomSleep(temps): " . ", " . ", ] + passe = 0 for i in range(int(temps)): - c = True for i in range(8): 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: sleep(temps)