diff --git a/core/models/course.py b/core/models/course.py index 91a73972..f2d7a758 100644 --- a/core/models/course.py +++ b/core/models/course.py @@ -51,7 +51,9 @@ 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()): + if ( + not self.is_current(target_date.date()) or target_date.weekday() >= 5 + ): # TODO: check for pa days return None return methods[tf.get("day_num_method", "consecutive")](tf, target_date)