Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DataCatalog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eFlows4HPC WP2
DataCatalog
Commits
d7a08ea5
Commit
d7a08ea5
authored
2 years ago
by
Christian Boettcher
Browse files
Options
Downloads
Patches
Plain Diff
ignore case for url and name matching
parent
a1c35768
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
apiserver/main.py
+2
-2
2 additions, 2 deletions
apiserver/main.py
with
2 additions
and
2 deletions
apiserver/main.py
+
2
−
2
View file @
d7a08ea5
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment