Fixed: Ignore Movies with null tags when pulling AllMovieTags

pull/7634/head
Qstick 2 years ago
parent 52c24a4333
commit 9f3eecb2a9

@ -311,7 +311,7 @@ namespace NzbDrone.Core.Movies
{
using (var conn = _database.OpenConnection())
{
var strSql = "SELECT \"Id\" AS \"Key\", \"Tags\" AS \"Value\" FROM \"Movies\"";
var strSql = "SELECT \"Id\" AS \"Key\", \"Tags\" AS \"Value\" FROM \"Movies\" WHERE \"Value\" IS NOT NUlL";
return conn.Query<KeyValuePair<int, List<int>>>(strSql).ToDictionary(x => x.Key, x => x.Value);
}
}

Loading…
Cancel
Save