Skip to content

Commit

Permalink
upload: be more cautious about grabbing files for upload
Browse files Browse the repository at this point in the history
Instead of looking for study name in the file, try harder to make sure
we are looking at a study *prefix* in the filename.
  • Loading branch information
mikix committed Oct 3, 2024
1 parent 4502da8 commit 6ea9020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cumulus_library/actions/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def upload_files(args: dict):
if args["target"]:
filtered_paths = []
for path in file_paths:
if any(study in str(path) for study in args["target"]):
if any(f"/{study}__" in str(path) for study in args["target"]):
filtered_paths.append(path)
file_paths = filtered_paths

Expand Down

0 comments on commit 6ea9020

Please sign in to comment.