mirror of
https://github.com/Radarr/Radarr
synced 2025-02-24 07:10:57 +00:00
Fixed: Ignore Movies with null tags when pulling AllMovieTags
This commit is contained in:
parent
52c24a4333
commit
9f3eecb2a9
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ public Dictionary<int, List<int>> AllMovieTags()
|
|||
{
|
||||
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…
Reference in a new issue