aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteItemRepository.cs
diff options
context:
space:
mode:
authorNeil Burrows <neil.burrows@nvable.com>2019-12-14 17:48:30 +0000
committerNeil Burrows <neil.burrows@nvable.com>2019-12-14 17:48:30 +0000
commitd9c0721e3dee52ec8a101cf3d35ca18ef5bd6cf3 (patch)
treeef08401b280bac653b95311cb766519c14714e25 /Emby.Server.Implementations/Data/SqliteItemRepository.cs
parent55317b5c749a36411f6582f8cf6a9477f1a2c880 (diff)
Reformatting code
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteItemRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/SqliteItemRepository.cs10
1 files changed, 3 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index b664738cb..ef1fe07c1 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -4596,13 +4596,9 @@ namespace Emby.Server.Implementations.Data
var paramName = "@ExcludeInheritedTags";
if (statement == null)
{
- List<string> paramList = new List<string>();
- for (int index = 0; index < query.ExcludeInheritedTags.Length; index++)
- {
- paramList.Add(paramName + index);
- }
-
- whereClauses.Add("((select CleanValue from itemvalues where ItemId=Guid and Type=6 and cleanvalue in (" + string.Join(",", paramList) + ")) is null)");
+ int index = 0;
+ string excludedTags = string.Join(",", query.ExcludeInheritedTags.Select(t => paramName + index++));
+ whereClauses.Add("((select CleanValue from itemvalues where ItemId=Guid and Type=6 and cleanvalue in (" + excludedTags + ")) is null)");
}
else
{