From dc0b0a64e2f5f3f2618b1175b4e7abb6bf674d4b Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 9 Apr 2023 09:19:58 -0600 Subject: [PATCH] transaction is only a dupe if value matches though this may cause other problems dupes are better than skips --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 5c032dc..49a875c 100755 --- a/main.go +++ b/main.go @@ -34,7 +34,7 @@ func main() { log.Printf("skipping match account antipattern %q vs %q", config.AccountsAntiPattern, transaction.Account) continue } - if _, err := config.Storage.Get(transaction.ID); err == nil { + if v, err := config.Storage.Get(transaction.ID); err == nil || string(v) == transaction.String() { log.Println("skipping duplicate transaction:", transaction) } else { if err := Upload(config, transaction); err != nil {