mirror of
https://github.com/escalante29/WealthySmart.git
synced 2026-05-19 07:48:47 +02:00
Wrap transaction_type in col() for notin_ filter
All checks were successful
Deploy to VPS / deploy (push) Successful in 12s
All checks were successful
Deploy to VPS / deploy (push) Successful in 12s
SQLModel enum columns need col() to expose SQLAlchemy operators like notin_. Without it the agent tool raised at query build time and the chat card flashed away. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -119,7 +119,7 @@ def get_recent_transactions(
|
|||||||
"""Recent transactions, newest first. Use filters to narrow down. For
|
"""Recent transactions, newest first. Use filters to narrow down. For
|
||||||
billing-cycle scoped totals prefer get_cycle_summary."""
|
billing-cycle scoped totals prefer get_cycle_summary."""
|
||||||
q = select(Transaction).where(
|
q = select(Transaction).where(
|
||||||
Transaction.transaction_type.notin_(
|
col(Transaction.transaction_type).notin_(
|
||||||
[TransactionType.SALARY, TransactionType.DEPOSITO]
|
[TransactionType.SALARY, TransactionType.DEPOSITO]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user