1
0
forked from ScoDoc/ScoDoc

Fix: tableau recap. avec évaluations: conversion notes

This commit is contained in:
Emmanuel Viennet 2024-07-02 00:19:30 +02:00
parent d556f152e9
commit 03cea5daf7

View File

@ -6,6 +6,7 @@
"""Table récapitulatif des résultats d'un semestre
"""
from functools import partial
from flask import g, url_for
import numpy as np
@ -71,7 +72,7 @@ class TableRecap(tb.Table):
if convert_values:
self.fmt_note = scu.fmt_note
else:
self.fmt_note = lambda x: x
self.fmt_note = partial(scu.fmt_note, keep_numeric=True)
# couples (modimpl, ue) effectivement présents dans la table:
self.modimpl_ue_ids = set()
@ -410,7 +411,7 @@ class TableRecap(tb.Table):
if e.evaluation_type != Evaluation.EVALUATION_BONUS
else ""
)
content = self.fmt_note(val)
content = self.fmt_note(val, note_max=e.note_max)
if e.evaluation_type != Evaluation.EVALUATION_BONUS:
classes = col_classes + [
{