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
Showing only changes of commit 0ddae54b9b - Show all commits

View File

@ -294,7 +294,7 @@ def ajout_assiduite_etud():
formsemestre: FormSemestre = FormSemestre.query.get(formsemestre_id) formsemestre: FormSemestre = FormSemestre.query.get(formsemestre_id)
# indique le nom du semestre dans le menu (optgroup) # indique le nom du semestre dans le menu (optgroup)
choices[formsemestre.titre_annee()] = [ choices[formsemestre.titre_annee()] = [
(m.id, m.module.code) (m.id, f"{m.module.code} {m.module.abbrev or m.module.titre or ''}")
for m in modimpls_by_formsemestre[formsemestre_id] for m in modimpls_by_formsemestre[formsemestre_id]
if m.module.ue.type == UE_STANDARD if m.module.ue.type == UE_STANDARD
] ]