From 7c45a8110f2afb816554b35b1c4de7b39cd89972 Mon Sep 17 00:00:00 2001 From: Ajay Gandecha Date: Sun, 26 May 2024 13:54:59 -0400 Subject: [PATCH] Removes preferred_applicants field (#464) --- backend/entities/academics/section_entity.py | 3 --- backend/models/academics/section_details.py | 4 ---- 2 files changed, 7 deletions(-) diff --git a/backend/entities/academics/section_entity.py b/backend/entities/academics/section_entity.py index e926502bd..566c7536a 100644 --- a/backend/entities/academics/section_entity.py +++ b/backend/entities/academics/section_entity.py @@ -162,7 +162,4 @@ def to_details_model(self) -> SectionDetails: if self.office_hours_section is not None else None ), - preferred_applicants=[ - applicant.to_model() for applicant in self.preferred_applicants - ], ) diff --git a/backend/models/academics/section_details.py b/backend/models/academics/section_details.py index d74f4be51..6d89188da 100644 --- a/backend/models/academics/section_details.py +++ b/backend/models/academics/section_details.py @@ -3,9 +3,6 @@ from ...models.academics.section_member import SectionMember from ...models.office_hours.section import OfficeHoursSection -from ..room import Room -from backend.models.application import UTAApplication - from .course import Course from .term import Term from .section import Section @@ -28,4 +25,3 @@ class SectionDetails(Section): term: Term office_hours_section: OfficeHoursSection | None members: list[SectionMember] - preferred_applicants: list[UTAApplication]