diff --git a/app/scodoc/sco_formsemestre_status.py b/app/scodoc/sco_formsemestre_status.py
index 3ac60eeb2..3f9890f64 100755
--- a/app/scodoc/sco_formsemestre_status.py
+++ b/app/scodoc/sco_formsemestre_status.py
@@ -838,6 +838,27 @@ def _make_listes_sem(formsemestre: FormSemestre) -> str:
)}">
Saisir l'assiduité
+ """
+ )
+ # YYYY-Www (ISO 8601) :
+ current_week: str = datetime.datetime.now().strftime("%G-W%V")
+ H.append(
+ f"""
+
+ """
+ )
+ if can_edit_abs:
+ H.append(
+ f"""
- """
+ """
)
H.append(
f"""
diff --git a/app/scodoc/sco_groups_view.py b/app/scodoc/sco_groups_view.py
index 0ebed4727..80454b435 100644
--- a/app/scodoc/sco_groups_view.py
+++ b/app/scodoc/sco_groups_view.py
@@ -26,7 +26,7 @@
##############################################################################
"""Affichage étudiants d'un ou plusieurs groupes
- sous forme: de liste html (table exportable), de trombinoscope (exportable en pdf)
+sous forme: de liste html (table exportable), de trombinoscope (exportable en pdf)
"""
# Re-ecriture en 2014 (re-organisation de l'interface, modernisation du code)
@@ -585,8 +585,8 @@ def groups_table(
etud_info["_nom_disp_order"] = etud_sort_key(etud_info)
etud_info["_prenom_target"] = fiche_url
- etud_info["_nom_disp_td_attrs"] = 'id="%s" class="etudinfo"' % (
- etud_info["etudid"]
+ etud_info["_nom_disp_td_attrs"] = (
+ 'id="%s" class="etudinfo"' % (etud_info["etudid"])
)
etud_info["bourse_str"] = "oui" if etud_info["boursier"] else "non"
if etud_info["etat"] == "D":
@@ -998,12 +998,12 @@ def form_choix_saisie_semaine(groups_infos):
return ""
query_args = parse_qs(request.query_string)
moduleimpl_id = query_args.get("moduleimpl_id", [None])[0]
- semaine = datetime.date.today().isocalendar().week
+ semaine = datetime.datetime.now().strftime("%G-W%V")
return f"""