update bar postix

This commit is contained in:
Cyberes 2023-11-04 20:15:10 -06:00
parent 3ff29d678c
commit 14ac8f4dde
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ if __name__ == '__main__':
total_downloaded = 0
row_i = min_row
row_iter = range(min_row, max_row + 1)
row_bar = tqdm(total=len(row_iter), desc=f'Row {row_i}', postfix={'failures': len(retries)})
row_bar = tqdm(total=len(row_iter), desc=f'Row {row_i}', postfix={'new_files': total_downloaded, 'failures': len(retries)})
for row in row_iter:
row_i = row
col_bar = tqdm(total=len(range(min_col, max_col + 1)), leave=False)
@ -75,6 +75,7 @@ if __name__ == '__main__':
col_bar.update()
row_bar.refresh()
col_bar.close()
row_bar.set_postfix({'new_files': total_downloaded, 'failures': len(retries)})
row_bar.update()
row_bar.close()