forked from ScoDoc/DocScoDoc
Merge pull request 'now support several departement for a nip when load formsemestre_bulletinetud' (#289) from jmplace/ScoDoc-Lille:fix_bulletin_search_by_nip into master
Reviewed-on: https://scodoc.org/git/ScoDoc/ScoDoc/pulls/289
This commit is contained in:
commit
96b59294a1
@ -290,9 +290,12 @@ def formsemestre_bulletinetud(
|
|||||||
if etudid:
|
if etudid:
|
||||||
etud = models.Identite.query.get_or_404(etudid)
|
etud = models.Identite.query.get_or_404(etudid)
|
||||||
elif code_nip:
|
elif code_nip:
|
||||||
etud = models.Identite.query.filter_by(
|
dept = formsemestre.dept_id
|
||||||
code_nip=str(code_nip)
|
etud = (
|
||||||
).first_or_404()
|
models.Identite.query.filter_by(code_nip=str(code_nip))
|
||||||
|
.filter_by(dept_id=dept)
|
||||||
|
.first_or_404()
|
||||||
|
)
|
||||||
elif code_ine:
|
elif code_ine:
|
||||||
etud = models.Identite.query.filter_by(
|
etud = models.Identite.query.filter_by(
|
||||||
code_ine=str(code_ine)
|
code_ine=str(code_ine)
|
||||||
|
Loading…
Reference in New Issue
Block a user