From 51c2b9dcad80bc80a95eba20014cb4c8da61de7f Mon Sep 17 00:00:00 2001 From: Aleteoryx Date: Fri, 22 Nov 2024 02:06:12 -0500 Subject: [PATCH] fix sql --- jetstream.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetstream.tcl b/jetstream.tcl index 84aa8bc..49b113f 100644 --- a/jetstream.tcl +++ b/jetstream.tcl @@ -29,7 +29,7 @@ namespace eval ::jetstream { set text [dict get $data commit record text] if [regexp -nocase -- {\stcl(/tk)?(,|\s)|^tcl(/tk)?(,|\s)|\stcl(/tk)?$|\stk(,|\s)|^tk(,|\s)|\stk$|\.tcl|tclsh} $text] { set ts [dict get $data commit record createdAt] - if ![catch {$db eval {INSERT INTO posts (uri, ts) VALUES ($uri, $ts) ON CONFLICT FAIL;}}] { + if ![catch {$db eval {INSERT OR FAIL INTO posts (uri, ts) VALUES ($uri, $ts);}}] { ${log}::info "new tclpost! https://bsky.app/profile/[dict get $data did]/post/[dict get $data commit rkey]" } } -- 2.45.2