From d293586eba5a55b5925357fadac4ac0df5f70454 Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Mon, 8 May 2023 14:29:38 +0200 Subject: [PATCH] Fix --count option in remove command --- src/serra/remove.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serra/remove.go b/src/serra/remove.go index 54f97cf..98b50a4 100644 --- a/src/serra/remove.go +++ b/src/serra/remove.go @@ -84,7 +84,7 @@ func removeCards(cards []string, count int64) error { } if !foil && c.SerraCount < 1 { - LogMessage(fmt.Sprintf("Error: No Non-Foil \"%s\" in the Collection.", c.Name), "red") + LogMessage(fmt.Sprintf("Error: No normal \"%s\" in the Collection.", c.Name), "red") continue } @@ -92,7 +92,7 @@ func removeCards(cards []string, count int64) error { coll.storageRemove(bson.M{"_id": c.ID}) LogMessage(fmt.Sprintf("\"%s\" (%.2f%s) removed from the Collection.", c.Name, c.getValue(foil), getCurrency()), "green") } else { - modifyCardCount(coll, c, -1, foil) + modifyCardCount(coll, c, -count, foil) } }