From 0c575021b33284687ab0003866a3ee2a0adc269e Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Thu, 5 Sep 2024 11:34:55 +0200 Subject: [PATCH] fix check output --- pkg/serra/check.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/serra/check.go b/pkg/serra/check.go index bc81f50..dc74962 100644 --- a/pkg/serra/check.go +++ b/pkg/serra/check.go @@ -59,16 +59,16 @@ func checkCards(cards []string, detail bool) error { // If Card is in collection, print yes. if len(co) >= 1 { c := co[0] - fmt.Printf("PRESENT %s \"%s\" (%s, %.2f%s)", card, c.Name, c.Rarity, c.getValue(foil), getCurrency()) + fmt.Printf("PRESENT %s \"%s\" (%s, %.2f%s)\n", card, c.Name, c.Rarity, c.getValue(foil), getCurrency()) continue } else { if detail { // fetch card from scyrfall if --detail was given c, _ := fetchCard(setName, collectorNumber) - fmt.Printf("MISSING %s \"%s\" (%s, %.2f%s)", card, c.Name, c.Rarity, c.getValue(foil), getCurrency()) + fmt.Printf("MISSING %s \"%s\" (%s, %.2f%s)\n", card, c.Name, c.Rarity, c.getValue(foil), getCurrency()) } else { // Just print, the card name was not found - fmt.Printf("MISSING \"%s\"", card) + fmt.Printf("MISSING \"%s\"\n", card) } } }