Skip to content

Commit

Permalink
Merge pull request #281 from pinwheeeel/develop
Browse files Browse the repository at this point in the history
fix "no school" on front page
  • Loading branch information
pinwheeeel authored Oct 3, 2024
2 parents 754a4e0 + 5840eaf commit 0338e9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/models/course.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ def day_num(self, target_date=None):
"calendar_days": self.__day_num_calendar_days,
}
target_date = utils.get_localdate(date=target_date, time=[23, 59, 59])
if not self.is_current(target_date.date()) or not self.day_is_instructional(
target_date
):
if not self.is_current(target_date.date()):
return None
return methods[tf.get("day_num_method", "consecutive")](tf, target_date)

Expand Down

0 comments on commit 0338e9e

Please sign in to comment.