We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8a50df commit ab87ae3Copy full SHA for ab87ae3
openagent/router/routes/agent.py
@@ -140,7 +140,7 @@ def list_agents(
140
) -> ResponseModel[dict] | APIExceptionResponse:
141
try:
142
total = db.query(Agent).count()
143
- agents = db.query(Agent).offset(page * limit).limit(limit).all()
+ agents = db.query(Agent).order_by(Agent.id.desc()).offset(page * limit).limit(limit).all()
144
return ResponseModel(
145
code=status.HTTP_200_OK,
146
data=AgentListResponse(
0 commit comments