Mercurial > hg > soundsoftware-site
changeset 976:0befb332f41a get_statistics
get stats up to current date
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 25 Oct 2012 13:50:45 +0100 |
parents | 30040a8e3a88 |
children | 510a66cccf79 |
files | extra/soundsoftware/get-statistics.rb |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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