passage sous black de sco_api.py
This commit is contained in:
parent
876e8eaaa3
commit
494410766b
|
@ -113,9 +113,7 @@ def liste_etudiants(dept, *args, sem_id):
|
|||
list_etuds = []
|
||||
for dept in list_depts:
|
||||
# Récupération des étudiants d'un département
|
||||
x = models.Identite.query.filter(
|
||||
models.Identite.dept_id == dept.getId()
|
||||
)
|
||||
x = models.Identite.query.filter(models.Identite.dept_id == dept.getId())
|
||||
for y in x:
|
||||
# Ajout des étudiants dans la liste global
|
||||
list_etuds.append(y)
|
||||
|
@ -126,9 +124,7 @@ def liste_etudiants(dept, *args, sem_id):
|
|||
)
|
||||
list_etuds = []
|
||||
for dept in list_depts:
|
||||
x = models.Identite.query.filter(
|
||||
models.Identite.dept_id == dept.getId()
|
||||
)
|
||||
x = models.Identite.query.filter(models.Identite.dept_id == dept.getId())
|
||||
for y in x:
|
||||
list_etuds.append(y)
|
||||
|
||||
|
|
Loading…
Reference in New Issue