Fix: création 1ere évaluation
This commit is contained in:
parent
128b282186
commit
e611fa4bfc
@ -90,10 +90,11 @@ def evaluation_create_form(
|
|||||||
# création nouvel
|
# création nouvel
|
||||||
if moduleimpl_id is None:
|
if moduleimpl_id is None:
|
||||||
raise ValueError("missing moduleimpl_id parameter")
|
raise ValueError("missing moduleimpl_id parameter")
|
||||||
|
numeros = [(e.numero or 0) for e in modimpl.evaluations]
|
||||||
initvalues = {
|
initvalues = {
|
||||||
"jour": time.strftime("%d/%m/%Y", time.localtime()),
|
"jour": time.strftime("%d/%m/%Y", time.localtime()),
|
||||||
"note_max": 20,
|
"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,
|
"publish_incomplete": is_malus,
|
||||||
"visibulletin": 1,
|
"visibulletin": 1,
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# -*- mode: python -*-
|
# -*- mode: python -*-
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
SCOVERSION = "9.6.931"
|
SCOVERSION = "9.6.932"
|
||||||
|
|
||||||
SCONAME = "ScoDoc"
|
SCONAME = "ScoDoc"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user