Commit f601740a authored by fred's avatar fred

consider episodes spanning the day limit to be on both days

parent b78435d1
......@@ -54,6 +54,10 @@ class WeekdayMixin(object):
if self.datetime.hour < self.DAY_HOUR_START:
week_day -= 1
week_day = (week_day % 7) + 1
if hasattr(self, 'episode'):
if self.datetime.hour < self.DAY_HOUR_START:
if (self.end_datetime.weekday()+1) == day:
return True
return week_day == day
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment