1
0
forked from ScoDoc/ScoDoc

Fix: typo recherche étudiant

This commit is contained in:
Emmanuel Viennet 2024-07-04 09:53:31 +02:00
parent 3c11998985
commit 03fea2268a

View File

@ -270,7 +270,6 @@ def search_etud_in_dept(expnom=""):
return "\n".join(H) + html_sco_header.sco_footer()
# Was chercheEtudsInfo()
def search_etuds_infos(expnom=None, code_nip=None) -> list[dict]:
"""recherche les étudiants correspondants à expnom ou au code_nip
et ramene liste de mappings utilisables en DTML.
@ -304,7 +303,7 @@ def search_etud_by_name(term: str) -> list:
return [
{
"label": f"""{(etud.code_nip+' ') if {etud.code_nip and may_be_nip} else ""}{
"label": f"""{(etud.code_nip+' ') if (etud.code_nip and may_be_nip) else ""}{
etud.nom_prenom()}""",
"value": etud.id,
}