Skip to content

Commit 1dd3155

Browse files
committed
fix a few small issues and typos
1 parent 406704f commit 1dd3155

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bma_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)