From 03fea2268a7f0476f3fccfaacd33288fc60530ad Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 4 Jul 2024 09:53:31 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20typo=20recherche=20=C3=A9tudiant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_find_etud.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/scodoc/sco_find_etud.py b/app/scodoc/sco_find_etud.py index 9041c66a..621390ff 100644 --- a/app/scodoc/sco_find_etud.py +++ b/app/scodoc/sco_find_etud.py @@ -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, }