Skip to content

Commit

Permalink
api(search): Aumenta o número de disciplinas retornadas na busca (#154)
Browse files Browse the repository at this point in the history
- Agora a api retorna até 15 disciplinas por busca
  • Loading branch information
GabrielCastelo-31 authored Dec 9, 2023
1 parent 25375c9 commit 4be57e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4be57e1

Please sign in to comment.