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 1
1
"""The BMA CLI wrapper."""
2
- import time
3
2
4
3
import json
5
4
import logging
5
+ import time
6
6
import uuid
7
7
from datetime import UTC , datetime
8
8
from importlib .metadata import version as get_version
@@ -116,8 +116,11 @@ def upload(files: list[str]) -> None:
116
116
result = client .upload_file (path = pf , file_license = config ["license" ], attribution = config ["attribution" ])
117
117
metadata = result ["bma_response" ]
118
118
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, " )
121
124
file_uuids .append (metadata ["uuid" ])
122
125
click .echo (f"Finished uploading { len (file_uuids )} files, creating album..." )
123
126
now = datetime .isoformat (datetime .now (tz = UTC ))
You can’t perform that action at this time.
0 commit comments