diff --git a/backend/app/agent/tools.py b/backend/app/agent/tools.py index ea71b78..8caac0e 100644 --- a/backend/app/agent/tools.py +++ b/backend/app/agent/tools.py @@ -119,7 +119,7 @@ def get_recent_transactions( """Recent transactions, newest first. Use filters to narrow down. For billing-cycle scoped totals prefer get_cycle_summary.""" q = select(Transaction).where( - Transaction.transaction_type.notin_( + col(Transaction.transaction_type).notin_( [TransactionType.SALARY, TransactionType.DEPOSITO] ) )