]> git.parisson.com Git - teleforma.git/commitdiff
fix arg
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 29 May 2023 15:11:16 +0000 (17:11 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 29 May 2023 15:11:16 +0000 (17:11 +0200)
teleforma/views/core.py

index 4849c90caa87ac3b3cf0082a3987f35387fc2803..70c3bfa846913b8cb1844c67bc58b57f06549954 100644 (file)
@@ -215,7 +215,7 @@ class PeriodAccessMixin(View):
         for department in departments:
             url = 'https://' + department.domain + '/json/'
             s = ServiceProxy(url)
-            remote_list = s.teleforma.get_period_list(department.name)
+            remote_list = s.teleforma.get_period_list(department.id)
             if remote_list['result']:
                 for period_dict in remote_list['result']:
                     if period_dict["is_open"] == "true":