~bfiedler/lutils

30a0547afdb3c913fd3ce1c54637df3b03deaff7 — Ben Fiedler 3 years ago 07da4eb main
importer/viseca: Do not import temporary transactions

Their ID will change once confirmed, confusing the importer
1 files changed, 6 insertions(+), 0 deletions(-)

M importer/viseca/viseca.go
M importer/viseca/viseca.go => importer/viseca/viseca.go +6 -0
@@ 13,6 13,7 @@ import (
	"io"
	"log"
	"strconv"
	"strings"
	"time"

	"git.sr.ht/~bfiedler/lutil/importer/types"


@@ 88,6 89,11 @@ func transactionFromRecord(r []string) *Transaction {
		return nil
	}

	if strings.HasPrefix(r[ID], "AUTH") {
		// This is an unconfirmed transaction, do not import it
		return nil
	}

	return &Transaction{
		id:           r[ID],
		date:         date,