Fix: création 1ere évaluation

This commit is contained in:
Emmanuel Viennet 2024-02-05 08:46:21 +01:00
parent 128b282186
commit e611fa4bfc
2 changed files with 3 additions and 2 deletions

View File

@ -90,10 +90,11 @@ def evaluation_create_form(
# création nouvel
if moduleimpl_id is None:
raise ValueError("missing moduleimpl_id parameter")
numeros = [(e.numero or 0) for e in modimpl.evaluations]
initvalues = {
"jour": time.strftime("%d/%m/%Y", time.localtime()),
"note_max": 20,
"numero": max(e.numero or 0 for e in modimpl.evaluations) + 1,
"numero": (max(numeros) + 1) if numeros else 0,
"publish_incomplete": is_malus,
"visibulletin": 1,
}

View File

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