Skip to content

Commit

Permalink
handle localizing files in dict (#21)
Browse files Browse the repository at this point in the history
* handle localizing files in dict

* bump version
  • Loading branch information
pymonger authored Oct 13, 2023
1 parent b9716b3 commit 8c3ceb5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions chimera/precondition_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ def is_url(val):
if is_url(v):
localize_paths_list.append(v)

elif isinstance(value, dict):
for v in value:
url = value.get(v)
if is_url(url):
localize_paths_list.append(url)

elif isinstance(value, str):
if is_url(value):
localize_paths_list.append(value)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='chimera',
version='2.2.2',
version='2.2.3',
packages=find_packages(),
install_requires=[
'elasticsearch>=7.0.0,<7.14.0',
Expand Down

0 comments on commit 8c3ceb5

Please sign in to comment.