Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Sep 8, 2011
1 parent c7a6db8 commit 3b0668b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qsstats/__init__.py
Expand Up @@ -3,7 +3,6 @@

from functools import partial
import datetime
import re
from dateutil.relativedelta import relativedelta
from dateutil.parser import parse
from django.db.models import Count
Expand Down Expand Up @@ -77,8 +76,8 @@ def _slow_time_series(self, start, end, interval='days',

num, interval = _parse_interval(interval)

if interval not in ['minutes', 'hours',
'days', 'weeks',
if interval not in ['minutes', 'hours',
'days', 'weeks',
'months', 'years'] or num != 1:
raise InvalidInterval('Interval is currently not supported.')

Expand Down

0 comments on commit 3b0668b

Please sign in to comment.