Skip to content

Commit

Permalink
Merge pull request #17 from M3nin0/dev
Browse files Browse the repository at this point in the history
contrib: updating geonames transform operation
  • Loading branch information
M3nin0 authored Feb 22, 2024
2 parents a5b6f24 + 760c2a8 commit 5579124
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions invenio_geographic_identifiers/contrib/geonames/datastreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,7 @@ def apply(self, stream_entry, *args, **kwargs):
}
}
],
"extras": list(
chain(
*[
list(
filter(
lambda x: x is not None and x.strip(),
map(
lambda y: stream_entry.entry.get(y),
["asciiname", "name", "alternativenames"],
),
)
),
record_country,
]
)
),
"extras": [stream_entry.entry.get("asciiname"), *record_country],
}

return stream_entry
Expand Down

0 comments on commit 5579124

Please sign in to comment.