File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ def upload(files: list[str]) -> None:
103103 for f in files :
104104 pf = Path (f )
105105 click .echo (f"Uploading file { f } ..." )
106- result = client .upload_file (path = pf , license = config ["license" ], attribution = config ["attribution" ])
106+ result = client .upload_file (path = pf , file_license = config ["license" ], attribution = config ["attribution" ])
107107 metadata = result ["bma_response" ]
108108 click .echo (f"File { metadata ['uuid' ]} uploaded OK!" )
109109 # check for jobs
@@ -117,12 +117,12 @@ def upload(files: list[str]) -> None:
117117 continue
118118
119119 # the grind
120- click .echo (f"Handling { len (jobs )} jobs for file { f } ..." )
120+ click .echo (f"Handling { len (jobs )} jobs for file { pf } ..." )
121121 for j in jobs :
122122 # load job in a typeddict, but why?
123123 klass = getattr (sys .modules [__name__ ], j ["job_type" ])
124124 job = klass (** j )
125- handle_job (f = f , job = job , client = client , config = config )
125+ handle_job (f = pf , job = job , client = client , config = config )
126126 click .echo ("Done!" )
127127
128128
You can’t perform that action at this time.
0 commit comments