Skip to content

fix: honor handoff export --limit 0 - #9

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

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

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown
Owner

Bug

export_phone_handoff selected packages with [: max(1, int(limit))], so --limit 0 still exported one package.

Fix

Use max(0, int(limit)) so an empty dry export stays empty.

Test

pytest tests/test_handoff_export_limit.py -q

Distinct from prior cooks #5–#8 (integrity --record / disaster-drill path / DTN corrupt / pack-freshness limit).

Pitchfork-and-Torch and others added 2 commits September 17, 2026 22:03
…sim, power Wh calibration, soak protocols, partner tabletop, not a complete archive, not free commercial broadband.
export_phone_handoff used max(1, limit), so limit=0 still selected one
package. Cap at max(0, limit) so an empty dry export stays empty.
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