improved display when speakers are set but line isn't

pull/414/head
HeNine 3 years ago
parent 7c60a407be
commit 073d6c8769

@ -83,12 +83,13 @@ CREATE VIEW buscribe_all_transcriptions AS
SELECT buscribe_transcriptions.id, SELECT buscribe_transcriptions.id,
start_time, start_time,
end_time, end_time,
coalesce(buscribe_verified_lines.verifier, speakers.verifier) AS verifier, coalesce(buscribe_verified_lines.verifier, speakers.verifier) AS verifier,
names, names,
verified_line AS transcription_line, coalesce(verified_line, buscribe_transcriptions.transcription_line) AS transcription_line,
setweight(to_tsvector('english', verified_line), 'C') AS transcription_line_ts, coalesce(setweight(to_tsvector('english', verified_line), 'C'),
setweight(to_tsvector(array_to_string(names, ' ')), 'C') AS names_ts, to_tsvector('english', buscribe_transcriptions.transcription_line)) AS transcription_line_ts,
null AS transcription_json setweight(to_tsvector(array_to_string(names, ' ')), 'C') AS names_ts,
null AS transcription_json
FROM buscribe_transcriptions FROM buscribe_transcriptions
LEFT OUTER JOIN buscribe_verified_lines ON buscribe_transcriptions.id = buscribe_verified_lines.line LEFT OUTER JOIN buscribe_verified_lines ON buscribe_transcriptions.id = buscribe_verified_lines.line
LEFT OUTER JOIN ( LEFT OUTER JOIN (

Loading…
Cancel
Save