Skip to content

Commit

Permalink
Changed schemes to HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
marshalmiller committed Jan 20, 2024
1 parent cc4c148 commit 634e0e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks.py
Expand Up @@ -39,10 +39,10 @@ def sort_ref(ref_dict):
check = []
)
if ref_dict['reftype'] == 'arxiv':
url = "http://arxiv.org/abs/"+ref_dict['ref']
url = "https://arxiv.org/abs/"+ref_dict['ref']
result['arxiv'].append(url)
elif ref_dict['reftype'] == 'doi':
url = "http://doi.org/"+ref_dict['ref']
url = "https://doi.org/"+ref_dict['ref']
result['doi'].append(url)
else:
url = ref_dict['ref']
Expand All @@ -60,8 +60,8 @@ def sort_ref(ref_dict):
result['arxiv'].append(url)
else:
if not urlparse(url).scheme:
url = 'http://' + url
url = 'https://' + url
result['urls'].append(url)
elif ref_dict['reftype'] == 'pdf':
result['pdfs'].append(url)
return result
return result

0 comments on commit 634e0e4

Please sign in to comment.