transaction is only a dupe if value matches though this may cause other problems dupes are better than skips
parent
1e01058c7c
commit
dc0b0a64e2
2
main.go
2
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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue