Fixed: Movie Recommendations not excluding movies on the exclusion list

pull/5848/head
bakerboy448 4 years ago committed by Qstick
parent 0443cc34c6
commit 45bb108127

@ -325,7 +325,7 @@ namespace NzbDrone.Core.Movies
recommendations = conn.Query<int>(@"
SELECT Rec FROM
(SELECT CAST(j.value AS INT) AS Rec FROM Movies CROSS JOIN json_each(Movies.Recommendations) AS j
WHERE Rec NOT IN (SELECT TmdbId FROM Movies))
WHERE Rec NOT IN (SELECT TmdbId FROM Movies union SELECT TmdbId from ImportExclusions))
GROUP BY Rec ORDER BY count(*) DESC LIMIT 100;").ToList();
}

Loading…
Cancel
Save