clear tasks

This commit is contained in:
Lex Berezhny 2020-07-29 00:41:40 -04:00
parent 684e389283
commit a802d1f686

View file

@ -137,7 +137,11 @@ class Basic(Console):
total, last = self.tasks[name]
elif total == 0:
return
self.tasks[name] = (total, self.maybe_log_progress(name, current, total, last))
progress_status = (total, self.maybe_log_progress(name, current, total, last))
if progress_status[1] == 1:
del self.tasks[name]
else:
self.tasks[name] = progress_status
class Bar2(Bar):