From 483417a57262f835112f661ebd065bdafcbd0500 Mon Sep 17 00:00:00 2001 From: Evan Purkhiser Date: Wed, 25 Oct 2023 22:24:22 -0700 Subject: [PATCH] Remove consumed venmo transaction Fixes a bug where when multiple people venmo me for the same amount the tool re-uses the same venmo transaction for multiple lunch money transactions --- venmo_auto_cashout/lunchmoney.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/venmo_auto_cashout/lunchmoney.py b/venmo_auto_cashout/lunchmoney.py index a12745d..d30e0b3 100644 --- a/venmo_auto_cashout/lunchmoney.py +++ b/venmo_auto_cashout/lunchmoney.py @@ -100,6 +100,9 @@ class VenmoRecord: # something when it does. continue + # Remove the consued venmo transaction + venmo_transactions.remove(matching_venmo) + matched_transactions.append((matching_venmo, lm_txn)) # Update transaction in lunch money