got event scraper working

This commit is contained in:
2025-02-16 16:21:03 -06:00
parent 283ed3eaea
commit 50c4133525
6 changed files with 49 additions and 30 deletions
+4 -2
View File
@@ -53,9 +53,11 @@ SELECT
json_extract (e.value, '$.fights'),
json_extract (e.value, '$.history')
FROM
json_each (?) AS e ON CONFLICT (url, slug) DO
UPDATE
json_each (?) AS e
WHERE true
ON CONFLICT (url) DO UPDATE
SET
slug = excluded.slug,
name = excluded.name,
location = excluded.location,
organization = excluded.organization,