enhance: property db ident doesn't allow #

This commit is contained in:
Tienson Qin
2024-04-01 14:53:25 +08:00
parent 02643a1561
commit d48e45eaa7
7 changed files with 23 additions and 36 deletions

View File

@@ -11,9 +11,8 @@
(defn lookup
"Get the value of coll's (a map) by db-ident. For file and db graphs"
[coll key]
(let [repo (state/get-current-repo)
db (db/get-db repo)]
(db-property/lookup repo db coll key)))
(let [repo (state/get-current-repo)]
(db-property/lookup repo coll key)))
(defn lookup-by-name
"Get the value of coll's (a map) by name. Only use this
@@ -39,9 +38,8 @@
(defn get-pid
"Get a built-in property's id (db-ident or name) given its db-ident. For file and db graphs"
[db-ident]
(let [repo (state/get-current-repo)
db (db/get-db repo)]
(db-property/get-pid repo db db-ident)))
(let [repo (state/get-current-repo)]
(db-property/get-pid repo db-ident)))
(defn block->shape [block]
(get-block-property-value block :logseq.property.tldraw/shape))