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)
Unfinished and inexistent. I've deleted it. I started in a "date from" -
"date to" approach that was left. It shouldn't have pushed. Apologizes for
it.

On Fri, Oct 3, 2014 at 9:30 PM, Lorenzo Gil Sanchez <
notifications@github.com> wrote:

> In okapiweb/management/commands/summarize.py:
>
> > +    def handle(self, *args, **options):
> > +        if not args:
> > +            """Summarize 15 days before"""
> > +            start_date = date.today() - timedelta(days=15)
> > +            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
>
> Is this unfinished?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/redbeacon/okapi-web/pull/23/files#r18414889>.
>



-- 
Alejandro Garcia
Software Engineer at RedBeacon.com