fix: import fails hard on page names with '#'

Follow up to c3f0cc1953
This commit is contained in:
Gabriel Horner
2024-09-19 14:57:18 -04:00
parent 9301c605db
commit 27c5d120ef
4 changed files with 21 additions and 10 deletions

View File

@@ -174,7 +174,7 @@
(is (= 1 (count (d/q '[:find ?b :where [?b :block/tags :logseq.class/Query]] @conn))))
;; Don't count pages like url.md that have properties but no content
(is (= 7
(is (= 8
(count (->> (d/q '[:find [(pull ?b [:block/title :block/type]) ...]
:where [?b :block/title] [_ :block/page ?b]] @conn)
(filter #(= "page" (:block/type %))))))