1
0
forked from ScoDoc/ScoDoc

Fix: nom champ cursus (code_cursus) dans resultats API (test ok)

This commit is contained in:
Emmanuel Viennet 2023-02-11 01:23:11 +01:00
parent 1e3dbe26c5
commit b089773766

View File

@ -212,7 +212,7 @@ class TableRecap(tb.Table):
row_ects.add_cell(col_id, None, ue.ects) row_ects.add_cell(col_id, None, ue.ects)
# la colonne où placer les valeurs agrégats # 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" col_group = "col_moy_gen" if "moy_gen" in self.column_ids else "cursus"
row_ects.add_cell( row_ects.add_cell(
col_id, col_id,
@ -488,8 +488,8 @@ class TableRecap(tb.Table):
def add_cursus(self): def add_cursus(self):
"""Ajoute colonne avec code cursus, eg 'S1 S2 S1' """Ajoute colonne avec code cursus, eg 'S1 S2 S1'
pour tous les étduiants de la table""" pour tous les étudiants de la table"""
cid = "cursus" cid = "code_cursus"
formation_code = self.res.formsemestre.formation.formation_code formation_code = self.res.formsemestre.formation.formation_code
for row in self.rows: for row in self.rows:
row.add_cell( row.add_cell(
@ -502,7 +502,7 @@ class TableRecap(tb.Table):
if ins.formsemestre.formation.formation_code == formation_code if ins.formsemestre.formation.formation_code == formation_code
] ]
), ),
"cursus", group="cursus",
) )