orders: docstring matches the paginated read (no fixed window)
This commit is contained in:
1 parent
3ccaf0ec85
commit
db0c09e85d
1 file changed
+3
-2
+3
-2
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user