Skip to content
Snippets Groups Projects
Commit 753deac3 authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Fix assiduite migration (2)

parent d86681b2
No related branches found
No related tags found
No related merge requests found
......@@ -331,11 +331,6 @@ def migrate_dept(dept_name: str, stats: _Statistics, time_elapsed: Profiler):
db.session.commit()
justifs: Justificatif = Justificatif.query
if dept_name is not None:
justifs.filter(Justificatif.etudid.in_(etuds_id))
print_progress_bar(
absences_len,
absences_len,
......@@ -350,6 +345,7 @@ def migrate_dept(dept_name: str, stats: _Statistics, time_elapsed: Profiler):
+ TerminalColor.RESET
)
justifs: Justificatif = Justificatif.query.join(Identite).filter_by(dept_id=dept.id)
compute_assiduites_justified(justifs, reset=True)
time_elapsed.stop()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment