Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions complaint_search/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

from django.http import StreamingHttpResponse

from rest_framework.exceptions import ValidationError

from complaint_search.defaults import MAX_DOWNLOAD_SIZE


class OpenSearchExporter(object):
def _check_download_size(self, total_count):
Expand Down
2 changes: 2 additions & 0 deletions complaint_search/tests/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
from django.test import TestCase

from parameterized import parameterized
from rest_framework.exceptions import ValidationError

from complaint_search.defaults import MAX_DOWNLOAD_SIZE
from complaint_search.export import OpenSearchExporter


Expand Down
1 change: 0 additions & 1 deletion complaint_search/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from complaint_search.serializer import (
SearchInputSerializer,
SuggestFilterInputSerializer,
SuggestInputSerializer,
TrendsInputSerializer,
)
from complaint_search.throttling import (
Expand Down
Loading