Shorten progress bars to 20 characters

They were needlessly long and this limited the message size.
This commit is contained in:
Joshua Boniface 2024-09-30 03:04:10 -04:00
parent 7785166a7e
commit 974e0d6ac2
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ def wait_for_celery_task(CLI_CONFIG, task_detail, start_late=False):
# Start following the task state, updating progress as we go # Start following the task state, updating progress as we go
total_task = task_status.get("total") total_task = task_status.get("total")
with progressbar(length=total_task, show_eta=False) as bar: with progressbar(length=total_task, width=20, show_eta=False) as bar:
last_task = 0 last_task = 0
maxlen = 21 maxlen = 21
echo( echo(

View File

@ -83,7 +83,7 @@ class UploadProgressBar(object):
else: else:
self.end_suffix = "" self.end_suffix = ""
self.bar = click.progressbar(length=self.length, show_eta=True) self.bar = click.progressbar(length=self.length, width=20, show_eta=True)
def update(self, monitor): def update(self, monitor):
bytes_cur = monitor.bytes_read bytes_cur = monitor.bytes_read