benjypng / logseq-kanban-plugin

MIT License
102 stars 9 forks source link

The query condition is invalid #13

Closed yunxi177 closed 2 years ago

yunxi177 commented 2 years ago

Thank you for developing such a great plugin,I ran into some problems while using it。 I want to query tasks with due date in this week. but it is not work. query statements:

#+BEGIN_QUERY
{:title " Scheduled TODOs"
:query [:find (pull ?b [*])
:in $ ?start ?next
:where
[?b :block/marker ?marker]
[?b :block/deadline ?d]
[(> ?d ?start)]
[(< ?d ?next)]
[(contains? #{"NOW" "LATER" "DOING"} ?marker)]]
:inputs [:today :7d-after]
:collapsed? false}
#+END_QUERY

where am i doing wrong?

benjypng commented 2 years ago

Hi! Unfortunately previously, the API version of the datascript query does not support inputs. However, I think the devs just updated the API. Will look into allowing inputs for the queries.

yunxi177 commented 2 years ago

Thank you for your answer, looking forward to adding this feature.

benjypng commented 2 years ago

Hi, this should be working on v2.7.0.