From 75dac0b2425c1598257feb74d93eeba6123f67c0 Mon Sep 17 00:00:00 2001 From: Emilie Date: Fri, 23 Dec 2016 19:06:57 +0100 Subject: [PATCH] [Timesheet] : url to api --- .../network/management/commands/import-figgo-id.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) -- 2.39.5