Fix: affiche nom enseignant et non uid dans historique saisies

This commit is contained in:
Emmanuel Viennet 2021-09-13 19:36:53 +02:00
parent d86a2dfc65
commit e9d996be41
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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: