mirror of
https://github.com/thegeneralist01/archivr
synced 2026-10-09 12:55:00 +02:00
fix: exclude child entries from collection listing
list_entries_for_collection was missing AND e.parent_entry_id IS NULL, causing child entries (playlist/channel videos) to appear alongside their parent in the flat archive view. list_root_entries and search_entries already had this guard; the collection path did not. Also removes garnix from flake.nix nixConfig.
This commit is contained in:
parent
95cd46978d
commit
bf5f95397f
2 changed files with 1 additions and 2 deletions
|
|
@ -460,6 +460,7 @@ pub fn list_entries_for_collection(
|
|||
"{} {} \
|
||||
JOIN collection_entries ce ON ce.entry_id = e.id \
|
||||
WHERE ce.collection_id = ?1 \
|
||||
AND e.parent_entry_id IS NULL \
|
||||
AND (CAST(?2 AS INTEGER) & 12 != 0 \
|
||||
OR (ce.visibility_bits & CAST(?2 AS INTEGER)) != 0) \
|
||||
GROUP BY e.id \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue