transcribe_wavs/map.pg.sql

30 lines
553 B
SQL

SELECT
t.filename
,substring(message->>'text',1,50)
,message
FROM
rlarp.thirtysec t
WHERE
--substring(message->>'text',1,100) ~ 'Tony Land'
message->>'rep' IS NULL
ORDER BY filename desc
SELECT
t.filename
,substring(message->>'text',1,50)
FROM
rlarp.thirtysec t
WHERE
substring(message->>'text',1,100) ~ 'Maxwell'
AND message->>'rep' IS NULL
ORDER BY filename desc
UPDATE
rlarp.thirtysec t
SET
message = message || '{"rep":"Colin Maxwell"}'::jsonb
WHERE
substring(message->>'text',1,50) ~ 'Maxwell'
AND message->>'rep' IS NULL