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
|
etud["partitions"][info["partition_id"]] = info
|
||||||
|
|
||||||
# resume textuel des groupes:
|
# resume textuel des groupes:
|
||||||
etud["groupes"] = sep.join(
|
etud["groupes"] = sep.join([gr["group_name"] for gr in infos if gr["group_name"]])
|
||||||
[gr["group_name"] for gr in infos if gr["group_name"] is not None]
|
|
||||||
)
|
|
||||||
etud["partitionsgroupes"] = sep.join(
|
etud["partitionsgroupes"] = sep.join(
|
||||||
[
|
[
|
||||||
(gr["partition_name"] or "") + ":" + gr["group_name"]
|
(gr["partition_name"] or "") + ":" + gr["group_name"]
|
||||||
for gr in infos
|
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:
|
for field in titles:
|
||||||
if field == "groupes":
|
if field == "groupes":
|
||||||
sco_groups.etud_add_group_infos(
|
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"])
|
l.append(etud["partitionsgroupes"])
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user