This commit is contained in:
Emmanuel Viennet 2022-02-10 18:49:25 +01:00
parent 4b7297bf1e
commit 41adb1953e
3 changed files with 9 additions and 4 deletions

View File

@ -153,7 +153,12 @@ class BulletinBUT:
self.etud_eval_results(etud, e)
for e in modimpl.evaluations
if e.visibulletin
and modimpl_results.evaluations_etat[e.id].is_complete
and (
modimpl_results.evaluations_etat[e.id].is_complete
or sco_preferences.get_preference(
"bul_show_all_evals", res.formsemestre.id
)
)
],
}
return d

View File

@ -119,9 +119,9 @@ class AddLogoForm(FlaskForm):
label="Nom",
validators=[
validators.regexp(
r"^[a-zA-Z0-9-]*$",
r"^[a-zA-Z0-9-_]*$",
re.IGNORECASE,
"Ne doit comporter que lettres, chiffres ou -",
"Ne doit comporter que lettres, chiffres, _ ou -",
),
validators.Length(
max=20, message="Un nom ne doit pas dépasser 20 caractères"

View File

@ -171,7 +171,7 @@ class NotesTable:
def __init__(self, formsemestre_id):
# log(f"NotesTable( formsemestre_id={formsemestre_id} )")
raise NotImplementedError() # XXX
# raise NotImplementedError() # XXX
if not formsemestre_id:
raise ValueError("invalid formsemestre_id (%s)" % formsemestre_id)
self.formsemestre_id = formsemestre_id