From 9e095e552c5628fdfece95ad48934ce9fe5c2a9d Mon Sep 17 00:00:00 2001 From: Filippo Campi Date: Fri, 9 Aug 2024 15:06:00 +0200 Subject: [PATCH] fixed code for waiting_list --- .../plone/policy/patches/collective_volto_formsupport.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/design/plone/policy/patches/collective_volto_formsupport.py b/src/design/plone/policy/patches/collective_volto_formsupport.py index 376a8b9..b2df078 100644 --- a/src/design/plone/policy/patches/collective_volto_formsupport.py +++ b/src/design/plone/policy/patches/collective_volto_formsupport.py @@ -161,12 +161,10 @@ def store_data(self): if not res: raise BadRequest("Unable to store data") - data.update( - { - "waiting_list": self.submit_limit is not None - and -1 < self.submit_limit < self.count_data() - } + waiting_list = ( + self.submit_limit is not None and -1 < self.submit_limit < self.count_data() ) + data.update({"waiting_list": waiting_list}) return data