feat: limit backtest history to latest 5

This commit is contained in:
shokollm
2026-04-11 05:36:31 +00:00
parent 6658a418cc
commit 847890b634

View File

@@ -235,6 +235,7 @@ def list_backtests(
db.query(Backtest)
.filter(Backtest.bot_id == bot_id)
.order_by(Backtest.started_at.desc())
.limit(5)
.all()
)
return backtests