From 0aa7fd3ec0a0a0eac153df7dbe08f0b5893ec4f4 Mon Sep 17 00:00:00 2001 From: Augustin <67148092+augustin64@users.noreply.github.com> Date: Mon, 14 Nov 2022 22:36:56 +0100 Subject: [PATCH] Reset Progress - Reset progress when "starting" an already completed task - Reset START_TIME if override option was used --- V4.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/V4.py b/V4.py index 1512d09..fc3efbe 100755 --- a/V4.py +++ b/V4.py @@ -828,6 +828,7 @@ def CustomStart(Credentials): actions = ["tout", "daily", "pc", "mobile", "LogPoint","Fidelite", "dev"] Actions = enquiries.choose("quels Actions ?", actions, multi=True) liste = SelectAccount() + START_TIME = time() # Reset timer to the start of the actions with Progress( TextColumn("[progress.description]{task.description}"), BarColumn(), @@ -908,6 +909,7 @@ def unban2(): def StartTask(task): p.start_task(task) + p.update(task, advance=0) # Reset the Task if it was already filled to 100% def ShowTask(task): p.update(task, visible=True)