orders: docstring matches the paginated read (no fixed window)

This commit is contained in:
inference-bot committed 2026-11-23 03:36:33 +00:00
1 parent 3ccaf0ec85
commit db0c09e85d
1 file changed
+3 -2
+3 -2
View File
@@ -8083,8 +8083,9 @@ def cycle_start_for_anchor_day(anchor_day: int, now: datetime | None = None) ->
async def fetch_member_orders() -> dict[str, list[dict]]: async def fetch_member_orders() -> dict[str, list[dict]]:
"""Every OC order for the collective, grouped by the payer's slug. """Every OC order for the collective, grouped by the payer's slug.
One query for the whole collective (orders(limit: 200)) rather than a call Paginated read for the whole collective (OC's own totalCount decides when
per member. Raises on failure so the caller can skip rather than mis-decide. to stop) rather than a fixed page or a call per member. Raises on failure —
including a PARTIAL read — so the caller can skip rather than mis-decide.
""" """
if not OC_PERSONAL_TOKEN: if not OC_PERSONAL_TOKEN:
raise RuntimeError("OC_PERSONAL_TOKEN not set; cannot fetch orders") raise RuntimeError("OC_PERSONAL_TOKEN not set; cannot fetch orders")