SciPost Code Repository

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

strip accents from potential COI arxiv call

parent 9f91b5e4
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ __license__ = "AGPL v3" ...@@ -6,7 +6,7 @@ __license__ = "AGPL v3"
import feedparser import feedparser
import logging import logging
from profiles.models import Profile from common.utils.text import latinise
from .models import ConflictOfInterest from .models import ConflictOfInterest
...@@ -40,8 +40,8 @@ class ArxivCaller: ...@@ -40,8 +40,8 @@ class ArxivCaller:
for profile in author_profiles: for profile in author_profiles:
for rel_profile in relating_profiles: for rel_profile in relating_profiles:
search_query = "au:({profile}+AND+({rel_profile}))".format( search_query = "au:({profile}+AND+({rel_profile}))".format(
profile=profile.last_name, profile=latinise(profile.last_name),
rel_profile=rel_profile.last_name, rel_profile=latinise(rel_profile.last_name),
) )
queryurl = self.query_base_url.format(query=search_query) queryurl = self.query_base_url.format(query=search_query)
queryurl += "&sortBy=submittedDate&sortOrder=descending&max_results=5" queryurl += "&sortBy=submittedDate&sortOrder=descending&max_results=5"
......
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