File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 11"""The BMA CLI wrapper."""
2- import time
32
43import json
54import logging
5+ import time
66import uuid
77from datetime import UTC , datetime
88from importlib .metadata import version as get_version
@@ -116,8 +116,11 @@ def upload(files: list[str]) -> None:
116116 result = client .upload_file (path = pf , file_license = config ["license" ], attribution = config ["attribution" ])
117117 metadata = result ["bma_response" ]
118118 t = round (time .time () - start , 2 )
119- click .echo (f"File { metadata ['uuid' ]} uploaded OK! It took { t } seconds to upload { size } bytes, speed { round (size / t )} bytes/sec" )
120- logger .debug (f"Done, " )
119+ click .echo (
120+ f"File { metadata ['uuid' ]} uploaded OK!"
121+ f"It took { t } seconds to upload { size } bytes, speed { round (size / t )} bytes/sec."
122+ )
123+ logger .debug ("Done, " )
121124 file_uuids .append (metadata ["uuid" ])
122125 click .echo (f"Finished uploading { len (file_uuids )} files, creating album..." )
123126 now = datetime .isoformat (datetime .now (tz = UTC ))
You can’t perform that action at this time.
0 commit comments