Return only real files from sequence list endpoint.

In other words, filter out real-time data.
This commit is contained in:
D. Berge
2020-09-01 12:30:49 +02:00
parent 1a9f04aa98
commit c8e0dc5d02

View File

@@ -34,12 +34,14 @@ async function list (projectId, opts = {}) {
SELECT sequence, array_agg(DISTINCT path) files
FROM raw_shots rs
LEFT JOIN files f USING (hash)
WHERE hash NOT LIKE '*%'
GROUP BY sequence
),
ff AS (
SELECT sequence, array_agg(DISTINCT path) files
FROM final_shots fs
LEFT JOIN files f USING (hash)
WHERE hash NOT LIKE '*%'
GROUP BY sequence
)
SELECT