From 4be57e1b8e44568261746e435fadc306cb80c142 Mon Sep 17 00:00:00 2001 From: Gabriel Henrique Castelo <81991244+GabrielCastelo-31@users.noreply.github.com> Date: Fri, 8 Dec 2023 21:20:03 -0300 Subject: [PATCH] =?UTF-8?q?api(search):=20Aumenta=20o=20n=C3=BAmero=20de?= =?UTF-8?q?=20disciplinas=20retornadas=20na=20busca=20(#154)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Agora a api retorna até 15 disciplinas por busca --- api/api/views/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api/views/views.py b/api/api/views/views.py index 9628c93..735a285 100644 --- a/api/api/views/views.py +++ b/api/api/views/views.py @@ -19,7 +19,7 @@ from api.views.utils import handle_400_error -MAXIMUM_RETURNED_DISCIPLINES = 8 +MAXIMUM_RETURNED_DISCIPLINES = 15 ERROR_MESSAGE = "no valid argument found for 'search', 'year' or 'period'" MINIMUM_SEARCH_LENGTH = 4 ERROR_MESSAGE_SEARCH_LENGTH = f"search must have at least {MINIMUM_SEARCH_LENGTH} characters"