Skip to content

Commit

Permalink
Remove consumed venmo transaction
Browse files Browse the repository at this point in the history
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
  • Loading branch information
evanpurkhiser committed Oct 26, 2023
1 parent 17870f9 commit 483417a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions venmo_auto_cashout/lunchmoney.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 483417a

Please sign in to comment.