Skip to content

Commit df38104

Browse files
committed
Merge remote-tracking branch 'origin/Fix/openalex' into Fix/openalex
2 parents 7333fad + 1afd688 commit df38104

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

welearn_datastack/plugins/rest_requesters/open_alex.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ def _extract_openalex_id_from_urls(urls: Iterable[str]) -> list[str]:
8080
continue
8181
parsed_url = urlparse(url)
8282
if parsed_url.hostname and parsed_url.hostname.lower() == "openalex.org":
83-
openalex_id = parsed_url.path.lstrip("/")
84-
openalex_ids.append(openalex_id)
83+
openalex_ids.append(parsed_url.path.lstrip("/"))
8584
else:
8685
raise UnknownURL(
8786
f"URL {url} does not have the expected hostname 'openalex.org' - expected format: https://openalex.org/<id>"

0 commit comments

Comments
 (0)