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)
Now it has 66 lines.

On Tue, Oct 7, 2014 at 12:57 AM, Daniel Gonzalez Gasull <
notifications@github.com> wrote:

> In okapiweb/management/commands/summarize.py:
>
> > +            print "Trying to summarize day", start_date
> > +            self.summarize(start_date, options['nodelete'])
> > +        else:
> > +            if len(args) == 1:
> > +                if self.check_date(args[0]):
> > +                    print "Trying to summarize day", args[0]
> > +                    self.summarize(args[0], options['nodelete'])
> > +                else:
> > +                    print "Date should have the right format YYYY-MM-DD"
> > +            elif len(args) == 2:
> > +                if self.check_date(args[0]) and self.check_date(args[1]):
> > +                    pass
> > +                else:
> > +                    print "Date should have the right format YYYY-MM-DD"
> > +
> > +    def process_hosts_list(self, hosts):
>
> @garciaae <https://github.com/garciaae> This method has 140 lines. Could
> it be possibly be broken down in smaller methods?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/redbeacon/okapi-web/pull/23/files#r18491429>.
>



-- 
Alejandro Garcia
Software Engineer at RedBeacon.com