Align balldontlie OpenAPI integration and clarify search metric semantics
This commit is contained in:
@ -123,9 +123,6 @@ class BalldontlieClient:
|
||||
request_query["per_page"] = per_page
|
||||
if cursor is not None:
|
||||
request_query["cursor"] = cursor
|
||||
else:
|
||||
# Keep backwards compatibility for endpoints still supporting page-based pagination.
|
||||
request_query["page"] = page
|
||||
|
||||
payload = self.get_json(path, params=request_query)
|
||||
data = payload.get("data") or []
|
||||
@ -139,11 +136,6 @@ class BalldontlieClient:
|
||||
page += 1
|
||||
continue
|
||||
|
||||
next_page = meta.get("next_page")
|
||||
if next_page:
|
||||
page = int(next_page)
|
||||
continue
|
||||
|
||||
break
|
||||
|
||||
return rows
|
||||
|
||||
Reference in New Issue
Block a user