Skip to content

Commit

Permalink
fixing the failures
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdurak committed Dec 16, 2024
1 parent b6d37e1 commit 47ed477
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/zenml/models/v2/core/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def apply_sorting(

query = query.add_columns(
latest_version_subquery.c.latest_version_created,
)
).where(ArtifactSchema.id == latest_version_subquery.c.id)

# Apply sorting based on the operand
if operand == SorterOps.ASCENDING:
Expand Down
2 changes: 1 addition & 1 deletion src/zenml/models/v2/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def apply_sorting(

query = query.add_columns(
latest_version_subquery.c.latest_version_created,
)
).where(ModelSchema.id == latest_version_subquery.c.id)

# Apply sorting based on the operand
if operand == SorterOps.ASCENDING:
Expand Down
2 changes: 1 addition & 1 deletion src/zenml/models/v2/core/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def apply_sorting(

query = query.add_columns(
latest_run_subquery.c.latest_run,
)
).where(PipelineSchema.id == latest_run_subquery.c.id)

if operand == SorterOps.ASCENDING:
query = query.order_by(
Expand Down

0 comments on commit 47ed477

Please sign in to comment.