diff --git a/app/scodoc/sco_groups.py b/app/scodoc/sco_groups.py index 8b1da28ad..2f4bbe0fb 100644 --- a/app/scodoc/sco_groups.py +++ b/app/scodoc/sco_groups.py @@ -493,14 +493,12 @@ def etud_add_group_infos( 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"] ] )