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
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