Commit 407871d3 authored by fred's avatar fred

don't include past-midnight episodes unless they continues in the morning

parent f601740a
......@@ -55,7 +55,7 @@ class WeekdayMixin(object):
week_day -= 1
week_day = (week_day % 7) + 1
if hasattr(self, 'episode'):
if self.datetime.hour < self.DAY_HOUR_START:
if self.datetime.hour < self.DAY_HOUR_START and self.end_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