From: Emilie Date: Fri, 23 Dec 2016 18:06:57 +0000 (+0100) Subject: [Timesheet] : url to api X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=75dac0b2425c1598257feb74d93eeba6123f67c0;p=mezzo.git [Timesheet] : url to api --- diff --git a/app/organization/network/management/commands/import-figgo-id.py b/app/organization/network/management/commands/import-figgo-id.py index f6cf065c..1ae8efb6 100644 --- a/app/organization/network/management/commands/import-figgo-id.py +++ b/app/organization/network/management/commands/import-figgo-id.py @@ -33,12 +33,12 @@ class Command(BaseCommand): number_of_person = 0 def handle(self, *args, **options): # process active person - r_p_active = requests.get('https://ircam.ilucca.net/api/users?fields=id,lastname,firstname', + r_p_active = requests.get(settings.FIGGO_API_URL_PROD+'api/users?fields=id,lastname,firstname', headers={'Authorization': 'Lucca application=bd6d5481-40eb-414b-9135-434e12749223'}) self.update_external_id(r_p_active.json()) # process INactive person - r_p_inactive = requests.get('https://ircam.ilucca.net/api/users?dtContractEnd=until,2016-12-31,null&fields=id,lastname,firstname', + r_p_inactive = requests.get(settings.FIGGO_API_URL_PROD+'api/users?dtContractEnd=until,2016-12-31,null&fields=id,lastname,firstname', headers={'Authorization': 'Lucca application=bd6d5481-40eb-414b-9135-434e12749223'}) self.update_external_id(r_p_inactive.json())