Only list collections if more than 1 item is contained

This commit is contained in:
Zoe Roux 2023-11-29 01:57:55 +01:00
parent b72553aa11
commit f2ebc5659e

View File

@ -48,9 +48,14 @@ namespace Kyoo.Core.Controllers
movies) as m on false movies) as m on false
full outer join( full outer join(
select select
* -- Collection c.* -- Collection as c
from from
collections) as c on false collections as c
left join link_collection_show as ls on ls.collection_id = c.id
left join link_collection_movie as lm on lm.collection_id = c.id
group by c.id
having count(*) > 1
) as c on false
"""; """;
protected override Dictionary<string, Type> Config => new() protected override Dictionary<string, Type> Config => new()