]> git.parisson.com Git - teleforma.git/commitdiff
Merge branch 'tc/dev' of git.parisson.com:git/teleforma into tc/dev
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 29 May 2023 15:16:35 +0000 (17:16 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 29 May 2023 15:16:35 +0000 (17:16 +0200)
1  2 
teleforma/views/core.py

index e7e3a3a25294846a5976026cc39e5fe6df3010c0,b86b6499153c6680aeb6112b413162b5d513bf9a..a7b7a99b219c0331c3669bb6d79ab957a8b06400
@@@ -219,12 -219,11 +219,11 @@@ class PeriodAccessMixin(View)
              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":
-                         period, c = Period.objects.get_or_create(
-                                         name=period_dict['name'],
-                                         department=department)
-                         periods_new.append(period)
-                         print(period)
+                     period, c = Period.objects.get_or_create(
+                                     name=period_dict['name'],
+                                     department=department)
 -                    period_new.append(period)
++                    periods_new.append(period)
+                     print(period)
  
          # cleanup
          for period in Period.objects.all():