Skip to content

Commit 607d1af

Browse files
committed
Up
1 parent 33b0557 commit 607d1af

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/bioversions/sources/slm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def get(self) -> datetime.date:
2525
"""Get the latest SwissLipids version number."""
2626
res = requests.get(URL, timeout=15).json()
2727
record = next(record for record in res if record["file"] == "lipids.tsv")
28-
return datetime.date.strptime(record["date"], "%B %d %Y")
28+
return datetime.datetime.strptime(record["date"], "%B %d %Y").date()
2929

3030

3131
if __name__ == "__main__":

src/bioversions/sources/zfin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get(self) -> datetime.date:
2323
soup = get_soup(URL)
2424
header_text = find_text(soup, "h2")
2525
version = header_text[len("ZFIN Data Reports from: ") :].strip()
26-
return datetime.date.strptime(version, "%d %b %Y")
26+
return datetime.datetime.strptime(version, "%d %b %Y").date()
2727

2828

2929
if __name__ == "__main__":

0 commit comments

Comments
 (0)