refuse to update spooldb with negative total or filament weights

This commit is contained in:
Ian Gulliver
2026-06-07 22:10:55 -07:00
parent f0809220e8
commit 9d0f570c85
2 changed files with 8 additions and 3 deletions
-3
View File
@@ -36,9 +36,6 @@ func trace(op string) func() {
// top bar) from being misread as a 1 on this kind of LCD.
const weightPrompt = `This photo shows a 3D printer filament spool sitting on a digital kitchen scale. ` +
`Read the weight on the scale's digital display, digit by digit, exactly as shown. ` +
`Note: the top edge of the display housing can come close to obscuring the TOPS of the digits, ` +
`so a digit that really has a top horizontal bar (like a 7) can momentarily look like a 1 — ` +
`look carefully for a faint top bar before deciding. ` +
`Report the unit shown on the display (g, kg, lb, or oz), and rate your own confidence ` +
`in the reading as "low", "medium", or "high". ` +
`Reason briefly, then on the LAST line output ONLY JSON: ` +