diff --git a/backend/app/coordinator/routes/enrollments.py b/backend/app/coordinator/routes/enrollments.py index a7a29f8..a776879 100644 --- a/backend/app/coordinator/routes/enrollments.py +++ b/backend/app/coordinator/routes/enrollments.py @@ -200,13 +200,13 @@ def delete_term_of_defence(examination_schedule_id: int, term_of_defence_id: int @bp.get('//term-of-defences/') -@bp.output(TermOfDefenceListSchema) +@bp.output(AssignedGroupToTermOfDefenceListSchema) def list_of_term_of_defences(examination_schedule_id: int) -> dict: get_examination_schedule_by_id(examination_schedule_id) td = TermOfDefence.query. \ - filter(TermOfDefence.examination_schedule_id == examination_schedule_id). \ join(TermOfDefence.members_of_committee, isouter=True). \ + filter(TermOfDefence.examination_schedule_id == examination_schedule_id). \ all() return {"term_of_defences": td}