Sarah Gruskin06/10/2021, 9:49 PM
rex06/10/2021, 9:59 PM
owen06/10/2021, 10:09 PM
that contains a list of all the dates. It should probably be written something like this instead:
This will return a list of partitions, representing a single day each. However, the schedule documentation that rex linked is really the easiest way to implement your desired behavior, so I recommend checking that out.
def get_date_partitions(): return [ Partition(datetime.strftime(TODAY - timedelta(days=x), DATE_FORMAT)) for x in range(get_number_of_days().days) ]
Sarah Gruskin06/10/2021, 10:10 PM