Fix manacurve ouptut

This commit is contained in:
Florian Baumann 2025-12-03 09:33:29 +01:00
parent 25e00d6fd3
commit 6604a029fb
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ func showManaCurveStats(coll *Collection) {
})
fmt.Printf("\n%sMana Curve%s\n", Green, Reset)
for _, mc := range cmc {
fmt.Printf("%.0f: %s%d%s\n", mc["_id"], Purple, mc["count"], Reset)
fmt.Printf("%.1f: %s%d%s\n", mc["_id"], Purple, mc["count"], Reset)
}
}

View File

@ -153,7 +153,7 @@ var updateCmd = &cobra.Command{
tmpCard := Card{}
tmpCard.Prices = t
l.Info("\n%sUpdating total value of collection to: %s%.02f%s%s\n", Green, Yellow, tmpCard.getValue(false)+tmpCard.getValue(true), getCurrency(), Reset)
l.Infof("\nUpdating total value of collection to: %s%.02f%s%s\n", Yellow, tmpCard.getValue(false)+tmpCard.getValue(true), getCurrency(), Reset)
totalcoll.storageAddTotal(t)
return nil