From c29199eff44c98dbdac9bd397001e93aef59e84c Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 25 Oct 2021 15:51:11 +0200 Subject: [PATCH] Fix: get_etud_dept recherche par INE --- app/views/scodoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/scodoc.py b/app/views/scodoc.py index 2ccac928..1722aca2 100644 --- a/app/views/scodoc.py +++ b/app/views/scodoc.py @@ -110,7 +110,7 @@ def get_etud_dept(): # il peut y avoir plusieurs réponses si l'étudiant est passé par plusieurs départements etuds = Identite.query.filter_by(code_nip=request.args["code_nip"]).all() elif "code_ine" in request.args: - etuds = Identite.query.filter_by(code_nip=request.args["code_ine"]).all() + etuds = Identite.query.filter_by(code_ine=request.args["code_ine"]).all() else: raise BadRequest( "missing argument (expected one among: etudid, code_nip or code_ine)"