mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Stash rating system (#2830)
* add rating100 fields to represent rating range 1-100 * deprecate existing (1-5) rating fields * add half- and quarter-star options for rating system * add decimal rating system option Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -12,16 +12,17 @@ func TestScenePartial_UpdateInput(t *testing.T) {
|
||||
)
|
||||
|
||||
var (
|
||||
title = "title"
|
||||
code = "1337"
|
||||
details = "details"
|
||||
director = "director"
|
||||
url = "url"
|
||||
date = "2001-02-03"
|
||||
rating = 4
|
||||
organized = true
|
||||
studioID = 2
|
||||
studioIDStr = "2"
|
||||
title = "title"
|
||||
code = "1337"
|
||||
details = "details"
|
||||
director = "director"
|
||||
url = "url"
|
||||
date = "2001-02-03"
|
||||
ratingLegacy = 4
|
||||
rating100 = 80
|
||||
organized = true
|
||||
studioID = 2
|
||||
studioIDStr = "2"
|
||||
)
|
||||
|
||||
dateObj := NewDate(date)
|
||||
@@ -42,7 +43,7 @@ func TestScenePartial_UpdateInput(t *testing.T) {
|
||||
Director: NewOptionalString(director),
|
||||
URL: NewOptionalString(url),
|
||||
Date: NewOptionalDate(dateObj),
|
||||
Rating: NewOptionalInt(rating),
|
||||
Rating: NewOptionalInt(rating100),
|
||||
Organized: NewOptionalBool(organized),
|
||||
StudioID: NewOptionalInt(studioID),
|
||||
},
|
||||
@@ -54,7 +55,8 @@ func TestScenePartial_UpdateInput(t *testing.T) {
|
||||
Director: &director,
|
||||
URL: &url,
|
||||
Date: &date,
|
||||
Rating: &rating,
|
||||
Rating: &ratingLegacy,
|
||||
Rating100: &rating100,
|
||||
Organized: &organized,
|
||||
StudioID: &studioIDStr,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user