Skip to content

fix: honor skybrary search/list_works --limit 0 - #14

Closed
Pitchfork-and-Torch wants to merge 2 commits into
mainfrom
fix/skybrary-search-limit-zero
Closed

Pitchfork-and-Torch wants to merge 2 commits into
mainfrom
fix/skybrary-search-limit-zero

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown
Owner

Summary

  • SkybraryCatalog.search and list_works honor limit=0 (empty result).
  • Previously max(1, limit) always returned at least one work.

Test plan

  • pytest tests/test_skybrary_search_limit.py

…t, custody, USB mule v2, mesh hop-forward sim, not Starlink, not RFC 9171, not free commercial broadband.
max(1, limit) forced one hit even when the operator asked for an
empty dry-run (limit 0). Return an empty list instead.
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