From 238e16b01ca66e63ffde21fa9ade017e84bd46e5 Mon Sep 17 00:00:00 2001 From: Kris Jordan Date: Tue, 13 Aug 2024 15:45:52 -0400 Subject: [PATCH] Fix for exporting PhD students (#581) --- backend/services/academics/hiring.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/services/academics/hiring.py b/backend/services/academics/hiring.py index 5580d674b..62bf477e7 100644 --- a/backend/services/academics/hiring.py +++ b/backend/services/academics/hiring.py @@ -237,11 +237,7 @@ def get_phd_applicants( select(ApplicationReviewEntity) .where(ApplicationReviewEntity.application_id.in_(application_ids)) .where(ApplicationReviewEntity.status == ApplicationReviewStatus.PREFERRED) - .options( - joinedload(ApplicationReviewEntity.course_site).joinedload( - CourseSiteEntity.sections - ) - ) + .options(joinedload(ApplicationReviewEntity.course_site)) ) instructor_preferences = self._session.scalars(instructor_review_query).all() for review in instructor_preferences: