[Tutor] Finding and Inserting missing dates in a date range.
digitalman66 at gmail.com
Wed Oct 14 16:08:58 CEST 2009
I went ahead and used a date range generator: http://dpaste.com/107140/ to
iterate over the range.I then compared the original list with the generated
one and inserted the missing dates.
I was comparing the generated dates to dates in a list list of tuples:
[(date, count), (date, count) ..... (date, count)]
Here is the code: http://dpaste.com/107148/
Worked perfectly. Thanks for pointing me in the correct direction.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor