def requires(self): buckets = [] for d in dateutils.day_range( dateutils.month_first_day(self.month), dateutils.month_last_day(self.month)): buckets.append(OrderBucket(d)) return buckets
def requires(self): return [CustomerSegment(self.day), MonthlyReport(month=dateutils.month_first_day(dateutils.yester_day()))]