truncate long desc

This commit is contained in:
Casper da Costa-Luis
2019-12-02 17:43:11 +00:00
parent 7318a6d120
commit c622287cd3
+3 -2
View File
@@ -115,8 +115,9 @@ class RemoteGDrive(RemoteBASE):
self, file_id, to_file, progress_name, no_progress_bar
):
gdrive_file = self.drive.CreateFile({"id": file_id})
bar_format = "Donwloading {desc}... " + Tqdm.format_sizeof(
int(gdrive_file["fileSize"]), "B", 1024
bar_format = (
"Donwloading {desc:{ncols_desc}.{ncols_desc}}... "
+ Tqdm.format_sizeof(int(gdrive_file["fileSize"]), "B", 1024)
)
with Tqdm(
bar_format=bar_format, desc=progress_name, disable=no_progress_bar