correctly update main bar
This commit is contained in:
parent
0151ce8040
commit
5157b2535b
1 changed files with 2 additions and 2 deletions
|
@ -382,9 +382,9 @@ class Advanced(Basic):
|
|||
bar.close()
|
||||
else:
|
||||
if len(d['done']) > 1:
|
||||
bar.update(d['done'])
|
||||
bar.update(d['done']-bar.n)
|
||||
else:
|
||||
bar.update(d['done'][0])
|
||||
bar.update(d['done'][0]-bar.n)
|
||||
|
||||
def sync_task(self, name, d):
|
||||
bar_name = f"{name}#{d['id']}"
|
||||
|
|
Loading…
Reference in a new issue