forked from ScoDoc/ScoDoc
Fix: tableau recap. avec évaluations: conversion notes
This commit is contained in:
parent
d556f152e9
commit
03cea5daf7
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
"""Table récapitulatif des résultats d'un semestre
|
"""Table récapitulatif des résultats d'un semestre
|
||||||
"""
|
"""
|
||||||
|
from functools import partial
|
||||||
|
|
||||||
from flask import g, url_for
|
from flask import g, url_for
|
||||||
import numpy as np
|
import numpy as np
|
||||||
@ -71,7 +72,7 @@ class TableRecap(tb.Table):
|
|||||||
if convert_values:
|
if convert_values:
|
||||||
self.fmt_note = scu.fmt_note
|
self.fmt_note = scu.fmt_note
|
||||||
else:
|
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:
|
# couples (modimpl, ue) effectivement présents dans la table:
|
||||||
self.modimpl_ue_ids = set()
|
self.modimpl_ue_ids = set()
|
||||||
|
|
||||||
@ -410,7 +411,7 @@ class TableRecap(tb.Table):
|
|||||||
if e.evaluation_type != Evaluation.EVALUATION_BONUS
|
if e.evaluation_type != Evaluation.EVALUATION_BONUS
|
||||||
else ""
|
else ""
|
||||||
)
|
)
|
||||||
content = self.fmt_note(val)
|
content = self.fmt_note(val, note_max=e.note_max)
|
||||||
if e.evaluation_type != Evaluation.EVALUATION_BONUS:
|
if e.evaluation_type != Evaluation.EVALUATION_BONUS:
|
||||||
classes = col_classes + [
|
classes = col_classes + [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user