Skip to content

Commit 95bf54d

Browse files
committed
Use last day of instruction for term end
Early start classes can begin before the grade submission deadline of the previous term.
1 parent 90c91b1 commit 95bf54d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mazevo_r25/management/commands/r25_mazevo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ def handle(self, *args, **options):
143143
"termDescription": "{} {}".format(term.quarter, term.year).title(),
144144
# can't use term.first_day_quarter because of early start classes
145145
"startDate": (
146-
prev_term.grade_submission_deadline + datetime.timedelta(days=1)
146+
prev_term.last_final_exam_date + datetime.timedelta(days=1)
147147
).isoformat(),
148-
"endDate": term.grade_submission_deadline.isoformat(),
148+
"endDate": term.last_final_exam_date.isoformat(),
149149
}
150150

151151
logger.info("Retrieving R25 reservations for {}: {} - {}".format(

0 commit comments

Comments
 (0)