forked from ScoDoc/ScoDoc
add parameter and fix parameter effects
This commit is contained in:
parent
7da076c1bf
commit
dfa0b168e5
@ -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"]
|
||||
]
|
||||
)
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user