set *publishing?

This commit is contained in:
Tienson Qin
2025-08-03 16:37:45 +08:00
parent 11eb0f38a6
commit be69292346
2 changed files with 5 additions and 2 deletions

View File

@@ -78,8 +78,11 @@
(defn- init-sqlite-module!
[]
(when-not @*sqlite
(p/let [sqlite (sqlite3InitModule (clj->js {:print js/console.log
(p/let [href (.. js/location -href)
publishing? (string/includes? href "publishing=true")
sqlite (sqlite3InitModule (clj->js {:print js/console.log
:printErr js/console.error}))]
(reset! *publishing? publishing?)
(reset! *sqlite sqlite)
nil)))

View File

@@ -266,7 +266,7 @@
;; (prn :debug :semantic-search-result
;; :block (:block/title (d/entity @conn label))
;; :distance distance)
(when-not (or (js/isNaN distance) (>= distance 0.45)
(when-not (or (js/isNaN distance) (>= distance 0.6)
(> label 2147483647))
(when-let [block (d/entity @conn label)]
(when (:block/title block)