Sarah Gruskin
06/10/2021, 9:49 PMrex
06/10/2021, 9:59 PMowen
06/10/2021, 10:09 PMPartition
that contains a list of all the dates. It should probably be written something like this instead:
def get_date_partitions():
return [
Partition(datetime.strftime(TODAY - timedelta(days=x), DATE_FORMAT))
for x in range(get_number_of_days().days)
]
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.Sarah Gruskin
06/10/2021, 10:10 PM