Fix: TypeError in __init__ /opt/scodoc/app/but/jury_but.py

This commit is contained in:
Emmanuel Viennet 2024-02-02 15:26:59 +01:00
parent 952132695f
commit e4c8637c41

View File

@ -417,7 +417,7 @@ class DecisionsProposeesAnnee(DecisionsProposees):
+ '</div><div class="warning">'.join(messages)
+ "</div>"
)
self.codes = [self.codes[0]] + sorted(self.codes[1:])
self.codes = [self.codes[0]] + sorted((c or "") for c in self.codes[1:])
def passage_de_droit_en_but3(self) -> tuple[bool, str]:
"""Vérifie si les conditions supplémentaires de passage BUT2 vers BUT3 sont satisfaites"""