update de sco_api.py

This commit is contained in:
leonard_montalbano 2022-01-06 10:31:21 +01:00
parent 2a55c753d3
commit 876e8eaaa3
1 changed files with 0 additions and 12 deletions

View File

@ -113,13 +113,9 @@ def liste_etudiants(dept, *args, sem_id):
list_etuds = []
for dept in list_depts:
# Récupération des étudiants d'un département
<<<<<<< HEAD
x = models.Identite.query.filter(models.Identite.dept_id == dept.getId())
=======
x = models.Identite.query.filter(
models.Identite.dept_id == dept.getId()
)
>>>>>>> e04a4f15ff20993bfcc8e4c2562ec1898f74f2f3
for y in x:
# Ajout des étudiants dans la liste global
list_etuds.append(y)
@ -130,20 +126,12 @@ def liste_etudiants(dept, *args, sem_id):
)
list_etuds = []
for dept in list_depts:
<<<<<<< HEAD
x = models.Identite.query.filter(models.Identite.dept_id == dept.getId())
for y in x:
list_etuds.append(y)
=======
x = models.Identite.query.filter(
models.Identite.dept_id == dept.getId()
)
for y in x:
list_etuds.append(y)
>>>>>>> e04a4f15ff20993bfcc8e4c2562ec1898f74f2f3
data = [d.to_dict() for d in list_etuds]
# return jsonify(data)
return error_response(501, message="Not implemented")