1
0
forked from ScoDoc/ScoDoc

Fix: création auto de bonus si matières sans numéros

This commit is contained in:
Emmanuel Viennet 2022-06-27 09:32:26 +02:00
parent 8dd3f6396d
commit 9f42244612
2 changed files with 2 additions and 2 deletions

View File

@ -978,7 +978,7 @@ def ue_add_malus_module(ue: UniteEns, titre=None, code=None) -> int:
matiere = matieres_malus[0]
else:
if ue.matieres.count() > 0:
numero = max([mat.numero for mat in ue.matieres]) + 10
numero = max([(mat.numero or 0) for mat in ue.matieres]) + 10
else:
numero = 0
matiere = Matiere(ue_id=ue.id, titre=titre_matiere_malus, numero=numero)

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.3.3"
SCOVERSION = "9.3.4"
SCONAME = "ScoDoc"