Skip to content

Commit

Permalink
Sort artifacts by created_at (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykeremy authored May 23, 2024
1 parent e8378e1 commit dea883a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions skyvern/forge/sdk/db/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ async def get_artifacts_for_task_step(
.filter_by(task_id=task_id)
.filter_by(step_id=step_id)
.filter_by(organization_id=organization_id)
.order_by(ArtifactModel.created_at)
)
).all():
return [convert_to_artifact(artifact, self.debug_enabled) for artifact in artifacts]
Expand Down

0 comments on commit dea883a

Please sign in to comment.