From a15b4f3acac50caf49e7f7b1c6c9e37f09192c4e Mon Sep 17 00:00:00 2001 From: Richard Dinh <1038306+flacoman91@users.noreply.github.com> Date: Mon, 10 Aug 2026 07:53:33 -0700 Subject: [PATCH 1/3] bug fix, restore max dl size param --- complaint_search/export.py | 3 +++ complaint_search/tests/test_export.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/complaint_search/export.py b/complaint_search/export.py index 8af81f6..fb9e41d 100644 --- a/complaint_search/export.py +++ b/complaint_search/export.py @@ -3,6 +3,9 @@ from io import StringIO from django.http import StreamingHttpResponse +from rest_framework.exceptions import ValidationError + +from complaint_search.defaults import MAX_DOWNLOAD_SIZE class OpenSearchExporter(object): diff --git a/complaint_search/tests/test_export.py b/complaint_search/tests/test_export.py index 0180a52..83b7293 100644 --- a/complaint_search/tests/test_export.py +++ b/complaint_search/tests/test_export.py @@ -5,9 +5,11 @@ from django.http import StreamingHttpResponse from django.test import TestCase +from rest_framework.exceptions import ValidationError from parameterized import parameterized +from complaint_search.defaults import MAX_DOWNLOAD_SIZE from complaint_search.export import OpenSearchExporter From 9eb49a7a062c0144b11c377a430a51d194dad237 Mon Sep 17 00:00:00 2001 From: Richard Dinh <1038306+flacoman91@users.noreply.github.com> Date: Mon, 10 Aug 2026 08:03:07 -0700 Subject: [PATCH 2/3] remove unused import from PR #254 --- complaint_search/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/complaint_search/views.py b/complaint_search/views.py index b73427c..b7b1cdc 100644 --- a/complaint_search/views.py +++ b/complaint_search/views.py @@ -23,7 +23,6 @@ from complaint_search.serializer import ( SearchInputSerializer, SuggestFilterInputSerializer, - SuggestInputSerializer, TrendsInputSerializer, ) from complaint_search.throttling import ( From 2c77b8a161a476c647d86b2bf1d6bdc8d2fefed5 Mon Sep 17 00:00:00 2001 From: Richard Dinh <1038306+flacoman91@users.noreply.github.com> Date: Mon, 10 Aug 2026 08:07:19 -0700 Subject: [PATCH 3/3] tox formatting --- complaint_search/export.py | 1 + complaint_search/tests/test_export.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/complaint_search/export.py b/complaint_search/export.py index fb9e41d..67e4daf 100644 --- a/complaint_search/export.py +++ b/complaint_search/export.py @@ -3,6 +3,7 @@ from io import StringIO from django.http import StreamingHttpResponse + from rest_framework.exceptions import ValidationError from complaint_search.defaults import MAX_DOWNLOAD_SIZE diff --git a/complaint_search/tests/test_export.py b/complaint_search/tests/test_export.py index 83b7293..1e5179a 100644 --- a/complaint_search/tests/test_export.py +++ b/complaint_search/tests/test_export.py @@ -5,9 +5,9 @@ from django.http import StreamingHttpResponse from django.test import TestCase -from rest_framework.exceptions import ValidationError from parameterized import parameterized +from rest_framework.exceptions import ValidationError from complaint_search.defaults import MAX_DOWNLOAD_SIZE from complaint_search.export import OpenSearchExporter