# HG changeset patch # User luisf # Date 1351169445 -3600 # Node ID 0befb332f41a6cb2559c8a66f5903cb2339c51a4 # Parent 30040a8e3a882fc35c5a6ead1a29fee7e9228e99 get stats up to current date diff -r 30040a8e3a88 -r 0befb332f41a extra/soundsoftware/get-statistics.rb --- a/extra/soundsoftware/get-statistics.rb Fri Oct 19 17:19:21 2012 +0100 +++ b/extra/soundsoftware/get-statistics.rb Thu Oct 25 13:50:45 2012 +0100 @@ -25,8 +25,8 @@ def weeks_between(d1, d2) weeks = [] - start_date = Date.civil(d1.year, d1.month, 1) - end_date = Date.civil(d2.year, d2.month, 1) + start_date = Date.civil(d1.year, d1.month, d1.day) + end_date = Date.civil(d2.year, d2.month, d2.day) raise ArgumentError unless d1 <= d2