Description
This commit is contained in:
@@ -32,6 +32,7 @@ type result struct {
|
||||
Image string `json:"image"`
|
||||
SpoolID string `json:"spool_id,omitempty"`
|
||||
URL string `json:"url,omitempty"`
|
||||
Description string `json:"description,omitempty"` // brand/material/type/color
|
||||
Location string `json:"location,omitempty"`
|
||||
PreviousWeight *weightBreakdown `json:"previous_weight,omitempty"` // as read from spooldb
|
||||
NewWeight *weightBreakdown `json:"new_weight,omitempty"` // from the measured photo
|
||||
@@ -202,6 +203,7 @@ func processImg(img image.Image, name string, auth claude.Auth, dryRun bool) res
|
||||
}
|
||||
if info != nil {
|
||||
r.Location = info.Location
|
||||
r.Description = info.Description
|
||||
r.PreviousWeight = &weightBreakdown{
|
||||
Spool: ptr(info.EmptySpoolGrams),
|
||||
Filament: ptr(info.RemainingGrams),
|
||||
|
||||
Reference in New Issue
Block a user