Skip to content

Commit

Permalink
feat: add compatibility with individual date extensions for submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Aug 10, 2023
1 parent b5760a8 commit a483dc3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion openassessment/xblock/openassessmentblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,12 @@ def is_closed(self, step=None, course_staff=None):
datetime.datetime(2015, 3, 27, 22, 7, 38, 788861)
"""
submission_range = (self.submission_start, self.submission_due)
if self.due is not None \
and self.submission_due is not None \
and parse_date_value(self.due, self._) > parse_date_value(self.submission_due, self._):
submission_range = (self.submission_start, self.due)
else:
submission_range = (self.submission_start, self.submission_due)
assessment_ranges = [
(asmnt.get('start'), asmnt.get('due'))
for asmnt in self.valid_assessments
Expand Down

0 comments on commit a483dc3

Please sign in to comment.