Skip to content

Commit

Permalink
Needs Update
Browse files Browse the repository at this point in the history
  • Loading branch information
theRealKLH committed Jun 30, 2024
1 parent 9f253fe commit fe9ce80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/scenes.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ func (i SceneResource) getFilters(req *restful.Request, resp *restful.Response)
outAttributes = append(outAttributes, "In Trailer List")
outAttributes = append(outAttributes, "Has Preview")
outAttributes = append(outAttributes, "Has Subscription")
outAttributes = append(outAttributes, "Needs Update")
outAttributes = append(outAttributes, "Rating 0")
outAttributes = append(outAttributes, "Rating .5")
outAttributes = append(outAttributes, "Rating 1")
Expand Down
2 changes: 2 additions & 0 deletions pkg/models/model_scene.go
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,8 @@ func queryScenes(db *gorm.DB, r RequestSceneList) (*gorm.DB, *gorm.DB) {
where = "has_video_preview = 1"
case "Has Subscription":
where = "is_subscribed = 1"
case "Needs Update":
where = "needs_update = 1"
case "Rating":
where = "scenes.star_rating = " + value
case "No Actor/Cast":
Expand Down

0 comments on commit fe9ce80

Please sign in to comment.