From f5b0850ab7d4f0bb176b7edbe69f948502669c6e Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Tue, 4 Jan 2022 12:04:46 +0100 Subject: [PATCH] fix count updating --- readme.md | 1 + src/serra/helpers.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index c5222c4..45d3df9 100644 --- a/readme.md +++ b/readme.md @@ -10,6 +10,7 @@ mvp * single view for card, with history +* remove card (double exec to reduce count) optional diff --git a/src/serra/helpers.go b/src/serra/helpers.go index 7968a30..2863b08 100644 --- a/src/serra/helpers.go +++ b/src/serra/helpers.go @@ -24,6 +24,6 @@ func increase_count_of_card(coll *Collection, c *Card) error { } coll.storage_update(update_filter, update) - LogMessage(fmt.Sprintf("Updating Card \"%s\" amount to %d", stored_card.Name, stored_card.SerraCount), "purple") + LogMessage(fmt.Sprintf("Updating Card \"%s\" amount to %d", stored_card.Name, stored_card.SerraCount+1), "purple") return nil }