SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 21fbe4f4 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

swap out date parser not working in python3.8

parent 1d391965
No related branches found
No related tags found
No related merge requests found
...@@ -245,7 +245,7 @@ class ChemRxivCaller: ...@@ -245,7 +245,7 @@ class ChemRxivCaller:
[a["firstName"] + " " + a["lastName"] for a in data.get("authors", [])] [a["firstName"] + " " + a["lastName"] for a in data.get("authors", [])]
), ),
"abstract": data.get("abstract", ""), "abstract": data.get("abstract", ""),
"pub_date": datetime.datetime.fromisoformat(pub_date) "pub_date": dateutil.parser.parse(pub_date)
if (pub_date := data.get("publishedDate")) if (pub_date := data.get("publishedDate"))
else None, else None,
"identifier_w_vn_nr": data.get("doi", ""), "identifier_w_vn_nr": data.get("doi", ""),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment