From 5eba6170a5132cd0f8f0444cacfd78146b9e3985 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 5 Apr 2024 10:11:34 +0200 Subject: [PATCH] Fix: typo bloquant affichage formations avec UEs sans semestre_idx --- app/scodoc/sco_formations.py | 2 +- sco_version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_formations.py b/app/scodoc/sco_formations.py index b129aaa8..461eb1ee 100644 --- a/app/scodoc/sco_formations.py +++ b/app/scodoc/sco_formations.py @@ -575,7 +575,7 @@ def formation_list_table(detail: bool) -> GenTable: # utilise pour voir si la formation couvre tous les semestres row["semestres_ues"] = ", ".join( "S" + str(x if (x is not None and x > 0) else "-") - for x in sorted({ue.semestre_idx for ue in formation.ues}) + for x in sorted({(ue.semestre_idx or 0) for ue in formation.ues}) ) # Date surtout utilisées pour le tri: if row["formsemestres"]: diff --git a/sco_version.py b/sco_version.py index 331861d6..bd969961 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.6.958" +SCOVERSION = "9.6.959" SCONAME = "ScoDoc"