def _no_xdays_range(self,start,end): return range_invert(start,end-start, range_union(*(d._range(start,end) for d in self.xdays.all())))
def _group_xrange(self,start,end): gx = [] for g in self.groups.all(): for gd in g.xdays.all(): gx.append(gd._range(start,end)) return range_invert(start,end-start,range_union(*gx))
def _group_xrange(self, start, end): gx = [] for g in self.groups.all(): for gd in g.xdays.all(): gx.append(gd._range(start, end)) return range_invert(start, end - start, range_union(*gx))