SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit a5080dcc authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Fix overwritten string variable in DOICaller

parent 1308e802
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,8 @@ class DOICaller: ...@@ -51,7 +51,8 @@ class DOICaller:
# For Physical Review # For Physical Review
pages = data.get('article-number', '') pages = data.get('article-number', '')
# For other journals? # For other journals?
pages = data.get('page', '') if not pages:
pages = data.get('page', '')
return pages return pages
def _get_pub_date(self, data): def _get_pub_date(self, data):
......
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