0.3.06
This commit is contained in:
@@ -33,7 +33,7 @@ const (
|
||||
maxPreparedCandidates = 750
|
||||
|
||||
// Increment only when stored eligibility, scoring, or explanation behavior changes.
|
||||
preparedAlgorithmVersion = "2026-07-31.2"
|
||||
preparedAlgorithmVersion = "2026-08-23.1"
|
||||
)
|
||||
|
||||
type ImportResult struct {
|
||||
@@ -676,7 +676,14 @@ func buildPreparedRows(
|
||||
"for-you:because:",
|
||||
func(item store.PreparedForYouItem) string { return item.ReasonSourceItemID },
|
||||
func(item store.PreparedForYouItem) string {
|
||||
return "Because you finished " + item.ReasonSourceTitle
|
||||
switch item.ReasonKind {
|
||||
case "completed-title":
|
||||
return "Because you finished " + item.ReasonSourceTitle
|
||||
case "favourite-title":
|
||||
return "Because you like " + item.ReasonSourceTitle
|
||||
default:
|
||||
return "Because you watched " + item.ReasonSourceTitle
|
||||
}
|
||||
},
|
||||
2,
|
||||
func(item store.PreparedForYouItem) bool {
|
||||
|
||||
@@ -214,6 +214,7 @@ func TestBuildPreparedRowsUsesMultipleSourcesAndDeduplicatesTitles(t *testing.T)
|
||||
CompatibilityScore: 0.8,
|
||||
CompatibilityLabel: "Direct plays well on this TV",
|
||||
RecommendationReason: "Because you finished " + sourceTitle,
|
||||
ReasonKind: "completed-title",
|
||||
ReasonGenre: genre, ReasonSourceItemID: sourceID,
|
||||
ReasonSourceTitle: sourceTitle,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user