]> git.parisson.com Git - mezzo.git/commitdiff
[Timesheet] : url to api
authorEmilie <zawadzki@ircam.fr>
Fri, 23 Dec 2016 18:06:57 +0000 (19:06 +0100)
committerEmilie <zawadzki@ircam.fr>
Fri, 23 Dec 2016 18:06:57 +0000 (19:06 +0100)
app/organization/network/management/commands/import-figgo-id.py

index f6cf065c76bb3ed5a7b04871a1cb4a5de6df8a5d..1ae8efb608e3b5f28d54cf562c1fbd6da44ec468 100644 (file)
@@ -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())