Skip to content
Snippets Groups Projects
Commit d7a08ea5 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

ignore case for url and name matching

parent a1c35768
Branches
Tags
No related merge requests found
...@@ -162,14 +162,14 @@ async def list_datasets(location_data_type: LocationDataType, name: str = None, ...@@ -162,14 +162,14 @@ async def list_datasets(location_data_type: LocationDataType, name: str = None,
if name: if name:
tmpset = [] tmpset = []
for element in datasets: for element in datasets:
if name in element[0]: if name.lower() in element[0].lower():
tmpset.append(element) tmpset.append(element)
datasets = tmpset datasets = tmpset
if url: if url:
tmpset = [] tmpset = []
for element in datasets: for element in datasets:
if url in adapter.get_details(location_data_type, element[1]).url: if url.lower() in adapter.get_details(location_data_type, element[1]).url.lower():
tmpset.append(element) tmpset.append(element)
datasets = tmpset datasets = tmpset
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment