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)
I dislike it too. 

Alejandro Garcia
Software Engineer at RedBeacon.com

> On 4/10/2014, at 1:20, Fidel Ramos <notifications@github.com> wrote:
> 
> In okapiweb/management/commands/summarize.py:
> 
> > +logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s')
> > +logger = logging.getLogger(__name__)
> > +logger.setLevel(logging.INFO)
> > +
> > +
> > +class Command(BaseCommand):
> > +    TIMEOUT = 5000
> > +    YEAR, WEEK, WEEKDAY = range(0, 3)
> > +    # month: quarter. It's clearer than (m - 1) // 3 + 1
> > +    quarters = {1: 1, 2: 1, 3: 1, 4: 2, 5: 2, 6: 2, 7: 3, 8: 3, 9: 3, 10: 4, 11: 4, 12: 4}
> > +    DEFAULT_DATE_FORMAT = "%Y-%m-%d"
> > +    DAYS_SUFFIX = "_days"
> > +    RAW_SUFFIX = "_raw"
> > +
> > +    help = 'Summarizes the data'
> > +    args = "[date_from] [date to]"
> nitpick: I dislike mixing quote styles.
> 
> —
> Reply to this email directly or view it on GitHub.