From 60304168d7ac2be4ac7a3ee5cea40ae39e2835f8 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Thu, 8 Dec 2022 12:25:52 +1000 Subject: [PATCH] assertion should be on the most recent entry --- src/muneem/import.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/muneem/import.clj b/src/muneem/import.clj index 8a0bdeb..929cd58 100644 --- a/src/muneem/import.clj +++ b/src/muneem/import.clj @@ -386,5 +386,5 @@ (mapv write-transaction-to-file (drop-last (take-csv csv))) (mapv write-transaction-to-file-savings (drop-last (take-csv csv)))) (write-accounts beancount-file) - (assert-balance (last (take-csv csv)) checking?) + (assert-balance (first (take-csv csv)) checking?) (reset! new-accounts #{}))