Skip to content

Commit

Permalink
Only list collections if more than 1 item is contained
Browse files Browse the repository at this point in the history
  • Loading branch information
zoriya committed Nov 29, 2023
1 parent b72553a commit f2ebc56
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ full outer join (
movies) as m on false
full outer join(
select
* -- Collection
c.* -- Collection as c
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()
Expand Down

0 comments on commit f2ebc56

Please sign in to comment.