Skip to content
Open
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
3 changes: 2 additions & 1 deletion ontology/views_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class SearchMondoText(APIView):
)
def get(self, request, **kwargs) -> Response:

search_term = request.GET.get('search_term') or ''
# Cap the length of free text forwarded to the external Monarch search API
search_term = (request.GET.get('search_term') or '')[:200]
gene_symbol = request.GET.get('gene_symbol')

selected = [term.strip() for term in (request.GET.get('selected') or '').split(",") if term.strip()]
Expand Down
Loading