Summarize data

Please, check my code!
I forgot to include some kind of readme.st. To test custom command:
python manage.py summarize [date YYYY-MM-DD] [--nodeletion]
If you pass no parameters it summarizes current date minus 15 days (single day and no a 15-days period)
@gasull Join us at redbeacon.slack.com/messages/okapi
We've been talking about this. 

Alejandro Garcia
Software Engineer at RedBeacon.com

> On 6/10/2014, at 23:38, Daniel Gonzalez Gasull <notifications@github.com> wrote:
> 
> In okapiweb/management/commands/summarize.py:
> 
> > +                paths_dict[urlparse(host.url).path].append(host)
> > +                host_response_time_list.append(host.response_time)
> > +                if host.status_code == 200:
> > +                    host_status_200 += 1
> > +                if host.status_code == 400:
> > +                    host_status_400 += 1
> > +                if host.status_code == 404:
> > +                    host_status_404 += 1
> > +                if host.status_code == 500:
> > +                    host_status_500 += 1
> > +                if host.response_time > host_max_response_time:
> > +                    host_max_response_time = host.response_time
> > +                if host.response_time < host_min_response_time:
> > +                    host_min_response_time = host.response_time
> > +
> > +            host_mean_response_time = average(host_response_time_list)
> @lorenzogil :
> 
> Also note that you are only computing averages but we also want means.
> 
> Lorenzo, isn't the mean the same as the average?
> Maybe you wanted to say "median"?
> 
> —
> Reply to this email directly or view it on GitHub.