Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
grablair committed Aug 1, 2024
1 parent 572b810 commit 1e1be85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions splitwise_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ def handle_personal_loans(self, loans):
balance_to_accrue = current_total - new_charges
interest = max(0, balance_to_accrue * (rate / 12))

logger.info(f" Current total: ${current_total}")
logger.info(f" Balance to accrue: ${current_total}")
logger.info(f" Interest: ${current_total}")

if not any("Personal Loan Interest" in e.getDescription() or "LOANSTART" in e.getDescription() for e in expenses):
if interest > 0:
expense = Expense()
Expand Down

0 comments on commit 1e1be85

Please sign in to comment.