Fix off-by-one error in rowspan calcuations

This commit is contained in:
James Polley 2017-12-24 15:00:19 +11:00
parent b833b7d869
commit 96a24489b6

View file

@ -42,7 +42,7 @@ class TimeTable(object):
@staticmethod
def rowspan(times, start, end):
return times.index(end) - times.index(start)
return times.index(end) - times.index(start) -1
def pairwise(iterable):