1
0
forked from ScoDoc/ScoDoc

3 petits bugs

This commit is contained in:
Emmanuel Viennet 2022-09-08 09:46:16 +02:00
parent f64a6c7d49
commit bc01d5ac02
4 changed files with 5 additions and 5 deletions

View File

@ -64,7 +64,7 @@ def table_billets_etud(
) -> GenTable: ) -> GenTable:
"""Page avec table billets.""" """Page avec table billets."""
etud = Identite.query.get_or_404(etudid) if etudid is not None else None etud = Identite.query.get_or_404(etudid) if etudid is not None else None
billets = query_billets_etud(etud.id, etat) billets = query_billets_etud(etudid, etat)
return table_billets(billets, etud=etud, with_links=with_links) return table_billets(billets, etud=etud, with_links=with_links)

View File

@ -1113,7 +1113,7 @@ def formsemestre_status(formsemestre_id=None):
"</div>", "</div>",
] ]
# --- Lien mail enseignants: # --- Lien mail enseignants:
adrlist = list(mails_enseignants - set([""])) adrlist = list(mails_enseignants - {None, ""})
if adrlist: if adrlist:
H.append( H.append(
'<p><a class="stdlink" href="mailto:?cc=%s">Courrier aux %d enseignants du semestre</a></p>' '<p><a class="stdlink" href="mailto:?cc=%s">Courrier aux %d enseignants du semestre</a></p>'

View File

@ -227,11 +227,11 @@ def formsemestre_list_saisies_notes(formsemestre_id, format="html"):
titles=titles, titles=titles,
columns_ids=columns_ids, columns_ids=columns_ids,
rows=rows, rows=rows,
html_title=f"<h2>Saisies de notes dans {formsemestre.titreannee()}</h2>", html_title=f"<h2>Saisies de notes dans {formsemestre.titre_annee()}</h2>",
html_class="table_leftalign table_coldate gt_table_searchable", html_class="table_leftalign table_coldate gt_table_searchable",
html_class_ignore_default=True, html_class_ignore_default=True,
html_sortable=True, html_sortable=True,
caption=f"Saisies de notes dans {formsemestre.titreannee()}", caption=f"Saisies de notes dans {formsemestre.titre_annee()}",
preferences=sco_preferences.SemPreferences(formsemestre_id), preferences=sco_preferences.SemPreferences(formsemestre_id),
base_url="%s?formsemestre_id=%s" % (request.base_url, formsemestre_id), base_url="%s?formsemestre_id=%s" % (request.base_url, formsemestre_id),
origin=f"Généré par {sco_version.SCONAME} le " + scu.timedate_human_repr() + "", origin=f"Généré par {sco_version.SCONAME} le " + scu.timedate_human_repr() + "",

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.3.35" SCOVERSION = "9.3.36"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"