From b089773766fca5a7c45854f28a02fc8bee0b315e Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 11 Feb 2023 01:23:11 +0100 Subject: [PATCH] Fix: nom champ cursus (code_cursus) dans resultats API (test ok) --- app/tables/recap.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/tables/recap.py b/app/tables/recap.py index c48acced..a7788d82 100644 --- a/app/tables/recap.py +++ b/app/tables/recap.py @@ -212,7 +212,7 @@ class TableRecap(tb.Table): row_ects.add_cell(col_id, None, ue.ects) # la colonne où placer les valeurs agrégats - col_id = "moy_gen" if "moy_gen" in self.column_ids else "cursus" + col_id = "moy_gen" if "moy_gen" in self.column_ids else "code_cursus" col_group = "col_moy_gen" if "moy_gen" in self.column_ids else "cursus" row_ects.add_cell( col_id, @@ -488,8 +488,8 @@ class TableRecap(tb.Table): def add_cursus(self): """Ajoute colonne avec code cursus, eg 'S1 S2 S1' - pour tous les étduiants de la table""" - cid = "cursus" + pour tous les étudiants de la table""" + cid = "code_cursus" formation_code = self.res.formsemestre.formation.formation_code for row in self.rows: row.add_cell( @@ -502,7 +502,7 @@ class TableRecap(tb.Table): if ins.formsemestre.formation.formation_code == formation_code ] ), - "cursus", + group="cursus", )