diff --git a/app/main.py b/app/main.py index 609d631..7e0bfbc 100644 --- a/app/main.py +++ b/app/main.py @@ -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]]: """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 - per member. Raises on failure so the caller can skip rather than mis-decide. + Paginated read for the whole collective (OC's own totalCount decides when + 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: raise RuntimeError("OC_PERSONAL_TOKEN not set; cannot fetch orders")