From 7a1803df3a22596ae46d4e7f5a41146f4c00ebba Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Fri, 17 Oct 2025 11:26:25 +0200 Subject: [PATCH] Rename count_all to countAll in stats.go --- pkg/serra/stats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/serra/stats.go b/pkg/serra/stats.go index 5336f88..139fbb6 100644 --- a/pkg/serra/stats.go +++ b/pkg/serra/stats.go @@ -92,7 +92,7 @@ func showValueStats(coll *Collection, totalcoll *Collection) { l.Error(err) foilValue = 0 } - count_all, err := getFloat64(stats[0]["count_all"]) + countAll, err := getFloat64(stats[0]["count_all"]) if err != nil { l.Error(err) foilValue = 0 @@ -101,7 +101,7 @@ func showValueStats(coll *Collection, totalcoll *Collection) { fmt.Printf("Total: %s%.2f%s%s\n", Pink, totalValue, getCurrency(), Reset) fmt.Printf("Normal: %s%.2f%s%s\n", Pink, normalValue, getCurrency(), Reset) fmt.Printf("Foils: %s%.2f%s%s\n", Pink, foilValue, getCurrency(), Reset) - fmt.Printf("Average Card: %s%.2f%s%s\n", Pink, totalValue/count_all, getCurrency(), Reset) + fmt.Printf("Average Card: %s%.2f%s%s\n", Pink, totalValue/countAll, getCurrency(), Reset) total, _ := totalcoll.storageFindTotal() fmt.Printf("History: \n")