add parameter and fix parameter effects

This commit is contained in:
Jean-Marie Place 2023-03-01 13:35:46 +01:00
parent 7da076c1bf
commit dfa0b168e5
2 changed files with 3 additions and 5 deletions

View File

@ -491,14 +491,12 @@ def etud_add_group_infos(etud, formsemestre_id, sep=" ", only_to_show=False):
etud["partitions"][info["partition_id"]] = info
# resume textuel des groupes:
etud["groupes"] = sep.join(
[gr["group_name"] for gr in infos if gr["group_name"] is not None]
)
etud["groupes"] = sep.join([gr["group_name"] for gr in infos if gr["group_name"]])
etud["partitionsgroupes"] = sep.join(
[
(gr["partition_name"] or "") + ":" + gr["group_name"]
for gr in infos
if gr["group_name"] is not None
if gr["group_name"]
]
)

View File

@ -203,7 +203,7 @@ def sco_import_generate_excel_sample(
for field in titles:
if field == "groupes":
sco_groups.etud_add_group_infos(
etud, groups_infos.formsemestre_id, sep=";"
etud, groups_infos.formsemestre_id, sep=";", only_to_show=True
)
l.append(etud["partitionsgroupes"])
else: