Skip to content

Commit

Permalink
Fix RxNorm getter
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Mar 25, 2024
1 parent 612806c commit a9e6414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bioversions/sources/rxnorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RxNormGetter(Getter):
def get(self) -> datetime:
"""Get the latest RxNorm version number."""
soup = get_soup(URL)
raw_version = soup.find("th", {"class": "current"}).contents[2]
raw_version = soup.find("th", {"class": "current"}).contents[2].strip()
raw_fmt = "%B %d, %Y"
return datetime.strptime(raw_version, raw_fmt)

Expand Down

0 comments on commit a9e6414

Please sign in to comment.