1
0
forked from ScoDoc/ScoDoc

Edition évaluation. Fix #731

This commit is contained in:
Emmanuel Viennet 2023-09-13 18:15:10 +02:00
parent 3eb8869349
commit 0fd16c8bbb
3 changed files with 4 additions and 3 deletions

View File

@ -536,7 +536,9 @@ def check_convert_evaluation_args(moduleimpl: ModuleImpl, data: dict):
raise ScoValueError("invalid note_max value (must be positive or null)")
data["note_max"] = note_max
# --- coefficient
coef = data.get("coefficient", 1.0) or 1.0
coef = data.get("coefficient", None)
if coef is None:
coef = 1.0
try:
coef = float(coef)
except ValueError as exc:

View File

@ -46,7 +46,6 @@ from app.scodoc.sco_exceptions import ScoValueError
from app.scodoc.TrivialFormulator import TrivialFormulator
from app.scodoc import html_sco_header
from app.scodoc import sco_evaluations
from app.scodoc import sco_evaluation_db
from app.scodoc import sco_moduleimpl
from app.scodoc import sco_preferences

View File

@ -22,7 +22,7 @@
{{tableau | safe}}
<div class=""help">
Les comptes sont exprimés en {{ assi_metric }}.
Les comptes sont exprimés en {{ assi_metric | lower}}s.
</div>
<script>