Commit b56b203f authored by fred's avatar fred
Browse files

add a fake get_duration() method to nonstop slots

parent 4756b493
......@@ -132,6 +132,10 @@ def period_program(date_start, date_end):
def __repr__(self):
return repr(self.label)
def get_duration(self):
# fake duration
return 0
first_day_start = datetime(*date_start.replace(hour=6, minute=0).timetuple()[:5])
last_day_end = datetime(*date_end.replace(hour=5, minute=0).timetuple()[:5])
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