enhance: use identity to avoid multiple vals binding error

pull/11451/head
Tienson Qin 2024-08-02 21:44:20 +08:00
parent 36e3366a74
commit d1ef3fbeec
1 changed files with 4 additions and 6 deletions

View File

@ -210,15 +210,13 @@
:task
'[(task ?b ?statuses)
;; and needed to avoid binding error
(and (property ?b :logseq.task/status ?val)
[(contains? ?statuses ?val)])]
[(identity ?statuses) [?val ...]]
(property ?b :logseq.task/status ?val)]
:priority
'[(priority ?b ?priorities)
;; and needed to avoid binding error
(and (property ?b :logseq.task/priority ?priority)
[(contains? ?priorities ?priority)])]}))
[(identity ?priorities) [?val ...]]
(property ?b :logseq.task/priority ?priority)]}))
(def rules-dependencies
"For db graphs, a map of rule names and the rules they depend on. If this map