Skip to content

fix: honor board list_posts limit 0 - #15

Closed
Pitchfork-and-Torch wants to merge 2 commits into
mainfrom
cook/boards-list-limit-zero
Closed

Pitchfork-and-Torch wants to merge 2 commits into
mainfrom
cook/boards-list-limit-zero

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown
Owner

Bug

BoardStore.list_posts used max(1, min(limit, 200)), so limit=0 still returned one post.

Distinct from prior cooks #8-#14 (pack-freshness / handoff / gateway / field-log / dtn / rx-schedule / skybrary limit 0).

Fix

Clamp with max(0, ...) so an empty page stays empty.

Test

  • pytest tests/test_boards_list_limit.py

…t, custody, USB mule v2, mesh hop-forward sim, not Starlink, not RFC 9171, not free commercial broadband.
max(1, limit) forced a single post when callers asked for an empty page.
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