Skip to content

Commit

Permalink
Merge pull request #673 from riyaa14/show-ignored-models-registry
Browse files Browse the repository at this point in the history
Fix ignored models not showing up in Registry and add option to toggle visibility of ignored models
  • Loading branch information
souvikinator authored Feb 21, 2025
2 parents 37aac47 + f59ab45 commit 5d9177b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions models/meshmodel/registry/v1beta1/model_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,10 @@ func (mf *ModelFilter) Get(db *database.Handler) ([]entity.Entity, int64, int, e
finder = finder.Order("display_name")
}

status := "enabled"

if mf.Status != "" {
status = mf.Status
finder = finder.Where("model_dbs.status = ?", mf.Status)
}

finder = finder.Where("model_dbs.status = ?", status)

finder.Count(&count)

if mf.Limit != 0 {
Expand Down

0 comments on commit 5d9177b

Please sign in to comment.