Skip to content

Commit

Permalink
Merge pull request sentinelsat#541 from avalentino/bugfix/fix-node-fi…
Browse files Browse the repository at this point in the history
…lter

Fix filter_node function (closes sentinelsat#540)
  • Loading branch information
valgur authored Sep 17, 2021
2 parents 4ea0ff5 + 5ceeeba commit a40677d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Changed
Fixed
~~~~~
* Fixed handling of missing `Online` OData attribute in older DHuS versions, such as https://coda.eumetsat.int. (`#535 <https://github.com/sentinelsat/sentinelsat/issues/535>`_ `@valgur <https://github.com/valgur>`_)
* Fix the ``filter_node`` function generated by ``make_path_filter`` so
that node paths are no longer converted to lowercase before pattern
matching. (`#541 <https://github.com/sentinelsat/sentinelsat/issues/541>`_
`@avalentino <https://github.com/avalentino>`_)


[1.1.0] – 2021-08-19
Expand Down
2 changes: 1 addition & 1 deletion sentinelsat/products.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def make_path_filter(pattern, exclude=False):
"""

def node_filter(node_info):
match = fnmatch.fnmatch(node_info["node_path"].lower(), pattern)
match = fnmatch.fnmatch(node_info["node_path"], pattern)
return not match if exclude else match

return node_filter
Expand Down

0 comments on commit a40677d

Please sign in to comment.