mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 01:52:17 -05:00
A date range cannot express "no date at all": a NULL fails every comparison, so no bound, however far back it reaches, selects the spools that have never been used. That state needed a filter of its own. Backend: /spool and /spool/group take first_used_unset / last_used_unset. True matches only the spools missing that timestamp, false only those that have one. Registered gets no such param — the server sets it at creation and a spool never lacks one. Client: the chip value `never` sits alongside the range grammar, and Last Used / First Used offer it under their presets. It is labelled "Never", deliberately not "unused": the list already calls a spool unused when no weight has come off it, which is a different claim — a spool can be unused and still carry a last_used date, or have used weight and no date at all.