add translated URL for production CERFA files (#41747)

This commit is contained in:
Frédéric Péters 2020-04-20 17:19:33 +02:00
parent 06795337bb
commit 3755b60ae9
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ class GLCartaDSCS(AbstractCartaDSCS):
def get_cerfa_pdf(self, url):
url = url.replace('http://ads-rec.grandlyon.fr/', 'https://api-rec.grandlyon.com/ads-rec/')
url = url.replace('https://ads-rec.grandlyon.fr/', 'https://api-rec.grandlyon.com/ads-rec/')
url = url.replace('https://ads.grandlyon.fr/', 'https://api.grandlyon.com/ads-pro/')
return self.requests.get(url, auth=HttpBearerAuth(self.get_api_manager_token()))
def get_api_manager_token(self, renew=False):