I was trying to understand what's the actual meaning of between, but I can't find the documentation. It seems to be the task's journal date, but these queries made me think it's the referenced journal date: (Tasks referencing due dates ...)
|
- 10. Tasks referencing due dates in the past |
|
#+BEGIN_SRC clojure |
|
|
|
#+BEGIN_QUERY |
|
{:title "⚠️ OVERDUE" |
|
:query [:find (pull ?b [*]) |
|
:in $ ?start ?today |
|
:where |
|
(task ?b #{"NOW" "LATER" "TODO" "DOING"}) |
|
(between ?b ?start ?today)] |
|
:inputs [:56d :today] |
|
:collapsed? false} |
|
#+END_QUERY |
|
#+END_SRC |
|
- 11. Tasks referencing due dates up to 10 days ahead |
|
#+BEGIN_SRC clojure |
|
|
|
#+BEGIN_QUERY |
|
{:title "📅 NEXT" |
|
:query [:find (pull ?b [*]) |
|
:in $ ?start ?next |
|
:where |
|
(task ?b #{"NOW" "LATER" "TODO" "DOING"}) |
|
(between ?b ?start ?next)] |
|
:inputs [:today :10d-after] |
|
:collapsed? false} |
|
#+END_QUERY |
|
#+END_SRC |
Then I found the definition here https://github.com/logseq/logseq/blob/master/deps/db/src/logseq/db/rules.cljc
:between
'[(between ?b ?start ?end)
[?b :block/page ?p]
[?p :block/journal? true]
[?p :block/journal-day ?d]
[(>= ?d ?start)]
[(<= ?d ?end)]]
So it's indeed the task's journal date and the queries above are wrongly explained. I think it might be better to add documentation for these rules, and fixup the examples.
I was trying to understand what's the actual meaning of
between, but I can't find the documentation. It seems to be the task's journal date, but these queries made me think it's the referenced journal date: (Tasks referencing due dates ...)docs/pages/Advanced Queries.md
Lines 177 to 204 in cdbec0f
Then I found the definition here https://github.com/logseq/logseq/blob/master/deps/db/src/logseq/db/rules.cljc
So it's indeed the task's journal date and the queries above are wrongly explained. I think it might be better to add documentation for these rules, and fixup the examples.