Skip to content

fix: honor gateway receipts --limit 0 - #10

Closed
Pitchfork-and-Torch wants to merge 2 commits into
mainfrom
cook/gateway-receipts-honor-limit-zero
Closed

Pitchfork-and-Torch wants to merge 2 commits into
mainfrom
cook/gateway-receipts-honor-limit-zero

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown
Owner

Summary

  • PullReceiptLog.list_recent used max(1, limit), so limit=0 still returned the latest receipt.
  • CLI gateway receipts --limit 0 and the web receipts path also coerced via or 50.
  • Honor limit=0 (empty recent list), matching handoff export #9.

Test plan

  • pytest -q tests/test_gateway_receipts_limit.py

Pitchfork-and-Torch and others added 2 commits September 17, 2026 22:28
…sim, power Wh calibration, soak protocols, partner tabletop, not a complete archive, not free commercial broadband.
list_recent used max(1, limit) and the CLI/API coerced limit via
`or 50`, so --limit 0 still returned one receipt. Honor zero like
handoff export.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant