Shorten progress bars to 20 characters
They were needlessly long and this limited the message size.
This commit is contained in:
parent
7785166a7e
commit
974e0d6ac2
|
@ -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
|
||||
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
|
||||
maxlen = 21
|
||||
echo(
|
||||
|
|
|
@ -83,7 +83,7 @@ class UploadProgressBar(object):
|
|||
else:
|
||||
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):
|
||||
bytes_cur = monitor.bytes_read
|
||||
|
|
Loading…
Reference in New Issue