mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:57:08 +00:00
Return only real files from sequence list endpoint.
In other words, filter out real-time data.
This commit is contained in:
@@ -34,12 +34,14 @@ async function list (projectId, opts = {}) {
|
|||||||
SELECT sequence, array_agg(DISTINCT path) files
|
SELECT sequence, array_agg(DISTINCT path) files
|
||||||
FROM raw_shots rs
|
FROM raw_shots rs
|
||||||
LEFT JOIN files f USING (hash)
|
LEFT JOIN files f USING (hash)
|
||||||
|
WHERE hash NOT LIKE '*%'
|
||||||
GROUP BY sequence
|
GROUP BY sequence
|
||||||
),
|
),
|
||||||
ff AS (
|
ff AS (
|
||||||
SELECT sequence, array_agg(DISTINCT path) files
|
SELECT sequence, array_agg(DISTINCT path) files
|
||||||
FROM final_shots fs
|
FROM final_shots fs
|
||||||
LEFT JOIN files f USING (hash)
|
LEFT JOIN files f USING (hash)
|
||||||
|
WHERE hash NOT LIKE '*%'
|
||||||
GROUP BY sequence
|
GROUP BY sequence
|
||||||
)
|
)
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
Reference in New Issue
Block a user