diff --git a/.gitignore b/.gitignore index 6410ab649..d26843d3c 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ static/django_extensions *.pyc *~ *.swp +pandora/gunicorn_config.py diff --git a/pandora/item/views.py b/pandora/item/views.py index b00ec8ffc..a73333af2 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -84,6 +84,8 @@ def parse_query(data, user): for key in ('sort', 'keys', 'group', 'range', 'position', 'positions'): if key in data: query[key] = data[key] + if [r for r in query['range'] if not isinstance(r, int)]: + query['range'] = [0, 0] query['qs'] = models.Item.objects.find(data, user) if 'clips' in data: conditions = {'query': data['clips']['query']}