correctly update main bar

This commit is contained in:
Lex Berezhny 2020-07-12 17:57:41 -04:00
parent 0151ce8040
commit 5157b2535b

View file

@ -382,9 +382,9 @@ class Advanced(Basic):
bar.close() bar.close()
else: else:
if len(d['done']) > 1: if len(d['done']) > 1:
bar.update(d['done']) bar.update(d['done']-bar.n)
else: else:
bar.update(d['done'][0]) bar.update(d['done'][0]-bar.n)
def sync_task(self, name, d): def sync_task(self, name, d):
bar_name = f"{name}#{d['id']}" bar_name = f"{name}#{d['id']}"