Update opolka/ScoDoc from ScoDoc/ScoDoc #2

Merged
opolka merged 1272 commits from ScoDoc/ScoDoc:master into master 2024-05-27 09:11:04 +02:00
2 changed files with 7 additions and 7 deletions
Showing only changes of commit 5d0a932634 - Show all commits

View File

@ -229,7 +229,7 @@ class BulletinBUT:
if res.modimpl_inscr_df[modimpl.id][etud.id]: # si inscrit if res.modimpl_inscr_df[modimpl.id][etud.id]: # si inscrit
d[modimpl.module.code] = { d[modimpl.module.code] = {
"id": modimpl.id, "id": modimpl.id,
"titre": modimpl.module.titre, "titre": modimpl.module.titre_str(),
"code_apogee": modimpl.module.code_apogee, "code_apogee": modimpl.module.code_apogee,
"url": ( "url": (
url_for( url_for(
@ -540,9 +540,9 @@ class BulletinBUT:
d.update(infos) d.update(infos)
# --- Rangs # --- Rangs
d[ d["rang_nt"] = (
"rang_nt" f"{d['semestre']['rang']['value']} / {d['semestre']['rang']['total']}"
] = f"{d['semestre']['rang']['value']} / {d['semestre']['rang']['total']}" )
d["rang_txt"] = "Rang " + d["rang_nt"] d["rang_txt"] = "Rang " + d["rang_nt"]
d.update(sco_bulletins.make_context_dict(self.res.formsemestre, d["etud"])) d.update(sco_bulletins.make_context_dict(self.res.formsemestre, d["etud"]))

View File

@ -448,7 +448,7 @@ def module_edit(
( (
"titre", "titre",
{ {
"size": 30, "size": 64,
"explanation": """nom du module. Exemple: "explanation": """nom du module. Exemple:
<em>Introduction à la démarche ergonomique</em>""", <em>Introduction à la démarche ergonomique</em>""",
}, },
@ -456,8 +456,8 @@ def module_edit(
( (
"abbrev", "abbrev",
{ {
"size": 20, "size": 32,
"explanation": """nom abrégé (pour bulletins). "explanation": """(optionnel) nom abrégé pour bulletins.
Exemple: <em>Intro. à l'ergonomie</em>""", Exemple: <em>Intro. à l'ergonomie</em>""",
}, },
), ),