Skip to content

Commit

Permalink
create-draft: Fix LCCN prefill
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Oct 23, 2024
1 parent 890447e commit 83bbaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion se/commands/create_draft.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def _get_wikipedia_url(string: str, get_nacoaf_uri: bool) -> Tuple[Optional[str]
except Exception as ex:
raise se.RemoteCommandErrorException(f"Couldn’t contact Wikipedia. Exception: {ex}") from ex

for match in regex.findall(r"https?://id\.loc\.gov/authorities/names/n[0-9]+", response.text):
for match in regex.findall(r"https?://id\.loc\.gov/authorities/n[0-9]+", response.text):
nacoaf_uri = match.replace("https:","http:")

return wiki_url, nacoaf_uri
Expand Down

0 comments on commit 83bbaf2

Please sign in to comment.