Skip to content

Commit

Permalink
Fixing rs API file matching regex handling
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbaileynar authored and MattReimer committed Sep 18, 2024
1 parent 797678c commit 5faba6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/riverscapes/riverscapes/classes/RiverscapesAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def download_files(self, project_id: str, download_dir: str, re_filter: List[str
continue
# now filter the
if re_filter is not None and len(re_filter) > 0:
if not any([re.compile(x).match(file['localPath'], re.IGNORECASE) for x in re_filter]):
if not any([re.compile(x, re.IGNORECASE).match(file['localPath'], ) for x in re_filter]):
continue
filtered_files.append(file)

Expand Down

0 comments on commit 5faba6a

Please sign in to comment.