Skip to content

Commit ad066b0

Browse files
committed
fix dict loop
1 parent 18bc63e commit ad066b0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/.bma_client.py.swp

24 KB
Binary file not shown.

src/bma_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def get_job_assignment(self, file_uuid: uuid.UUID | None = None) -> list[dict[st
131131
def upload_file(self, path: Path, attribution: str, file_license: str) -> dict[str, dict[str, str]]:
132132
"""Upload a file."""
133133
# is this an image?
134-
for _mimetype, extensions in self.settings["filetypes"]["images"].values():
135-
extension = path.suffix[1:]
134+
extension = path.suffix[1:]
135+
for extensions in self.settings["filetypes"]["images"].values():
136136
if extension.lower() in extensions:
137137
# this file has the extension of a supported image
138138
logger.debug(f"Extension {extension} is supported...")

0 commit comments

Comments
 (0)