From: Guillaume Pellerin Date: Mon, 29 May 2023 22:53:29 +0000 (+0200) Subject: Merge branch 'tc/dev' of git.parisson.com:git/teleforma into tc/dev X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=bb60733617fda20fc643ca4bd8de12939b53c35d;p=teleforma.git Merge branch 'tc/dev' of git.parisson.com:git/teleforma into tc/dev --- bb60733617fda20fc643ca4bd8de12939b53c35d diff --cc teleforma/views/core.py index 1dc71274,0018e9e3..d71341c0 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@@ -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