fix: stop sending count to the Staan search API (#30303)

Staan rejects any count other than its fixed page size of 10, so every search 400ed with the default result count of 3. The API always returns 10 results; the local results[:count] slice already applies the configured count, so the request parameter is simply dropped.
This commit is contained in:
Classic298
2026-09-21 08:04:26 -04:00
committed by GitHub
parent 7eebbbb891
commit 9012bd153d
+1 -1
View File
@@ -30,7 +30,7 @@ def search_staan(
'Accept': 'application/json',
'Authorization': f'Bearer {api_key}',
}
params = {'q': query, 'market': market, 'count': count}
params = {'q': query, 'market': market}
if max_snippets:
params['extra_snippets'] = 'true'