also replace https://ads-rec.grandlyon.fr to get CERFA PDF files

This commit is contained in:
Frédéric Péters 2020-03-11 11:14:16 +01:00
parent 9368a1c3bb
commit 06795337bb
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,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/')
return self.requests.get(url, auth=HttpBearerAuth(self.get_api_manager_token()))
def get_api_manager_token(self, renew=False):