Skip to content

Commit

Permalink
[API] Adiciona parâmetro para browse do filtro (fb)
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusandrade committed Oct 15, 2024
1 parent 1c9625e commit d19b30e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bireme/api/title_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def get_search(self, request, **kwargs):

q = request.GET.get('q', '')
fq = request.GET.get('fq', '')
fb = request.GET.get('fb', '')
start = request.GET.get('start', '')
count = request.GET.get('count', '')
lang = request.GET.get('lang', 'pt')
Expand All @@ -90,7 +91,7 @@ def get_search(self, request, **kwargs):
search_url = "%siahx-controller/" % settings.SEARCH_SERVICE_URL

search_params = {'site': settings.SEARCH_INDEX, 'op': op, 'output': 'site', 'lang': lang,
'q': q, 'fq': fq, 'start': start, 'count': count, 'id': id, 'sort': sort}
'q': q, 'fq': fq, 'fb': fb, 'start': start, 'count': count, 'id': id, 'sort': sort}

r = requests.post(search_url, data=search_params)

Expand Down

0 comments on commit d19b30e

Please sign in to comment.