Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Data Harvesting
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Helmholtz Metadata Collaboration
HMC Public
unHIDE
Data Harvesting
Merge requests
!48
Hotfix add array wrapper for solr update request
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Hotfix add array wrapper for solr update request
hotfix-add-array-of-data-solr
into
dev
Overview
0
Commits
4
Pipelines
2
Changes
1
Open
Stefan Dvoretskii
requested to merge
hotfix-add-array-of-data-solr
into
dev
6 months ago
Overview
0
Commits
4
Pipelines
2
Changes
1
Expand
This reverts commit
f07ccb6a
.
0
0
Merge request reports
Viewing commit
3bc274d1
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
3bc274d1
convert int id to string for later iteration
· 3bc274d1
Stefan Dvoretskii
authored
2 months ago
data_harvesting/indexer/indexer.py
+
1
−
1
Options
@@ -776,7 +776,7 @@ def extract_ids(data: List[dict], pattern: str = '://ror.org') -> List[str]:
"""
Extract all identifiers that match a certain pattern
"""
id_list
=
[]
for
entry
in
data
:
_id
=
entry
.
get
(
'
@id
'
,
''
)
_id
=
str
(
entry
.
get
(
'
@id
'
,
''
)
)
if
pattern
in
_id
:
id_list
.
append
(
_id
)
return
list
(
set
(
id_list
))
Loading