From e9d996be41f24252284c8a1d330e601723fe744a Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 13 Sep 2021 19:36:53 +0200 Subject: [PATCH] Fix: affiche nom enseignant et non uid dans historique saisies --- app/scodoc/sco_formsemestre_status.py | 3 ++- app/scodoc/sco_liste_notes.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_formsemestre_status.py b/app/scodoc/sco_formsemestre_status.py index 1e2862e37..9248ecfa2 100644 --- a/app/scodoc/sco_formsemestre_status.py +++ b/app/scodoc/sco_formsemestre_status.py @@ -64,7 +64,7 @@ from app.scodoc.sco_formsemestre_custommenu import formsemestre_custommenu_html def _build_menu_stats(formsemestre_id): - "Définition du menu 'Statistiques' " + "Définition du menu 'Statistiques'" return [ { "title": "Statistiques...", @@ -495,6 +495,7 @@ def formsemestre_page_title(): if not formsemestre_id: return "" try: + formsemestre_id = int(formsemestre_id) sem = sco_formsemestre.get_formsemestre(formsemestre_id).copy() except: log("can't find formsemestre_id %s" % formsemestre_id) diff --git a/app/scodoc/sco_liste_notes.py b/app/scodoc/sco_liste_notes.py index 9d96c77c9..3478433af 100644 --- a/app/scodoc/sco_liste_notes.py +++ b/app/scodoc/sco_liste_notes.py @@ -50,6 +50,7 @@ from app.scodoc import sco_groups from app.scodoc import sco_moduleimpl from app.scodoc import sco_preferences from app.scodoc import sco_etud +from app.scodoc import sco_users import sco_version from app.scodoc.gen_tables import GenTable from app.scodoc.htmlutils import histogram_notes @@ -569,7 +570,7 @@ def _add_eval_columns( comment = "" explanation = "%s (%s) %s" % ( NotesDB[etudid]["date"].strftime("%d/%m/%y %Hh%M"), - NotesDB[etudid]["uid"], + sco_users.user_info(NotesDB[etudid]["uid"])["nomcomplet"], comment, ) else: