wbapi-async 0.6.2__tar.gz → 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/PKG-INFO +1 -1
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/pyproject.toml +1 -1
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/method.py +16 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/.gitignore +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/LICENSE +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/README.md +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/__init__.py +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/api.py +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/client/__init__.py +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/client/session/__init__.py +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/client/session/base.py +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/client/session/headers.py +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/exceptions.py +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/py.typed +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/type.py +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/utils/__init__.py +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/utils/paginate.py +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/utils/token.py +0 -0
- {wbapi_async-0.6.2 → wbapi_async-0.7.0}/src/wbapi_async/utils/unofficial.py +0 -0
|
@@ -601,6 +601,22 @@ class MethodDispatcher:
|
|
|
601
601
|
|
|
602
602
|
result: list[Any] = list(page)
|
|
603
603
|
|
|
604
|
+
# rrd_id cursor — detected by presence of rrd_id in last item
|
|
605
|
+
if page and isinstance(page[-1], dict) and "rrd_id" in page[-1]:
|
|
606
|
+
while page:
|
|
607
|
+
rrd_id = page[-1]["rrd_id"]
|
|
608
|
+
page = _extract_list(await _do_request({"rrdid": rrd_id})) or []
|
|
609
|
+
result.extend(page)
|
|
610
|
+
return result
|
|
611
|
+
|
|
612
|
+
# lastChangeDate cursor — detected by presence of lastChangeDate in last item
|
|
613
|
+
if page and isinstance(page[-1], dict) and "lastChangeDate" in page[-1]:
|
|
614
|
+
while page:
|
|
615
|
+
date_from = page[-1]["lastChangeDate"]
|
|
616
|
+
page = _extract_list(await _do_request({"dateFrom": date_from})) or []
|
|
617
|
+
result.extend(page)
|
|
618
|
+
return result
|
|
619
|
+
|
|
604
620
|
# Cursor pagination
|
|
605
621
|
if isinstance(raw, dict) and "next" in raw:
|
|
606
622
|
cursor = raw["next"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|