Adjust add output

This commit is contained in:
Florian Baumann 2023-09-14 17:11:49 +02:00
parent 5fb1cb63a2
commit a4268afb7f

View File

@ -114,7 +114,7 @@ func addCards(cards []string, unique bool, count int64) error {
c := co[0] c := co[0]
if unique { if unique {
l.Warnf("Not adding \"%s\" (%s, %.2f%s) because it already exists.", c.Name, c.Rarity, c.getValue(foil), getCurrency()) l.Warnf("%dx \"%s\" (%s, %.2f%s) not added, because it already exists", count, c.Name, c.Rarity, c.getValue(foil), getCurrency())
continue continue
} }
@ -127,7 +127,7 @@ func addCards(cards []string, unique bool, count int64) error {
total = c.SerraCount + count total = c.SerraCount + count
} }
// Give feedback of successfully added card // Give feedback of successfully added card
l.Infof("%dx \"%s\" (%s, %.2f%s) added.", total, c.Name, c.Rarity, c.getValue(foil), getCurrency()) l.Infof("%dx \"%s\" (%s, %.2f%s) added", total, c.Name, c.Rarity, c.getValue(foil), getCurrency())
// If card is not already in collection, fetching from scyfall // If card is not already in collection, fetching from scyfall
} else { } else {
@ -154,7 +154,7 @@ func addCards(cards []string, unique bool, count int64) error {
} }
// Give feedback of successfully added card // Give feedback of successfully added card
l.Infof("%dx \"%s\" (%s, %.2f%s) added to Collection.", total, c.Name, c.Rarity, c.getValue(foil), getCurrency()) l.Infof("%dx \"%s\" (%s, %.2f%s) added", total, c.Name, c.Rarity, c.getValue(foil), getCurrency())
} }
} }
storageDisconnect(client) storageDisconnect(client)