feat: limit backtest history to latest 5
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user