Re: [Tutor] return all the days between two dates using the calendar module

2011-08-22 Thread Norman Khine
ok ignore, this works def date_range(start_date, end_date): r = (end_date+datetime.timedelta(days=1)-start_date).days return [start_date+datetime.timedelta(days=i) for i in range(r)] On Mon, Aug 22, 2011 at 5:27 PM, Norman Khine wrote: > Hello, > I have this code http://pastie.org/2411

[Tutor] return all the days between two dates using the calendar module

2011-08-22 Thread Norman Khine
Hello, I have this code http://pastie.org/2411735 which basically reads a CSV file, takes the date field and then for each day executes an SQL query to pull the amount of orders that have been generated. My issue I have is that on the back-office of the e-commerce package the total orders for the