SciPost Code Repository

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

Merge branch 'ros1'

parents dc74d8f1 7fde2eb7
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ class DOICaller: ...@@ -98,7 +98,7 @@ class DOICaller:
class ArxivCaller: class ArxivCaller:
query_base_url = 'http://export.arxiv.org/api/query?id_list=%s' query_base_url = 'https://export.arxiv.org/api/query?id_list=%s'
def __init__(self, identifier): def __init__(self, identifier):
self.identifier = identifier self.identifier = identifier
...@@ -136,7 +136,7 @@ class ArxivCaller: ...@@ -136,7 +136,7 @@ class ArxivCaller:
author_list = [author['name'] for author in data.get('authors', [])] author_list = [author['name'] for author in data.get('authors', [])]
# author_list is given as a comma separated list of names on the relevant models (Commentary, Submission) # author_list is given as a comma separated list of names on the relevant models (Commentary, Submission)
author_list = ", ".join(author_list) author_list = ", ".join(author_list)
arxiv_link = data['id'] arxiv_link = data['id'].replace('http:', 'https:')
abstract = data['summary'] abstract = data['summary']
pub_date = dateutil.parser.parse(data['published']).date() pub_date = dateutil.parser.parse(data['published']).date()
......
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