]> 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 22:53:29 +0000 (00:53 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 29 May 2023 22:53:29 +0000 (00:53 +0200)
1  2 
teleforma/views/core.py

index 1dc712748bd82302ee044d88e78cd5ab36aeba7a,0018e9e335692ff0687196a31c9415feaad71ea2..d71341c06cc59c376478576aca7cf9b399b496ce
@@@ -217,13 -217,12 +217,12 @@@ class PeriodAccessMixin(View)
              url = 'https://' + department.domain + '/json/'
              s = ServiceProxy(url)
              remote_list = s.teleforma.get_period_list(department.name)
-             print(remote_list)
              if remote_list['result']:
 -                for period_dict in remote_list['result']:
 +                for period_name in remote_list['result']:
                      period, c = Period.objects.get_or_create(
 -                                    name=period_dict['name'],
 +                                    name=period_name,
                                      department=department)
 -                    period_new.append(period)
 +                    periods_new.append(period)
                      print(period)
  
          # cleanup