This commit is contained in:
Jean-Marie Place 2021-09-24 23:15:14 +02:00
parent cd06a780d5
commit bd6e3e6648

View File

@ -142,6 +142,7 @@ class PlacementForm(FlaskForm):
self.groups_tree = groups_tree
self.nb_partitions = len(groups_tree)
self.nb_groups = sum([len(x) for x in self.groups_tree.values()])
self.max_groups = max([len(x) for x in self.groups_tree.values()])
self.has_groups = self.nb_groups > 1
# add dynamic fields to Class
for partition in groups_tree:
@ -197,6 +198,7 @@ class _Distributeur2D:
def placement_eval_selectetuds(evaluation_id):
"""Creation de l'écran de placement"""
groups_tree = _get_group_info(evaluation_id)
breakpoint()
form = PlacementForm(
groups_tree,
request.form,