Queries for task management

hi again,

actually it still shows a task with deadline today.
I tried to see how to exclude but I don’t get it.
Could you help me out?

{:title "📅  NEXT 3 DAYS, NOT TODAY"
    :query [:find (pull ?h [*])
            :in $ ?next ?today
            :where
            [?h :block/marker ?m]
            [(contains? #{"LATER" "TODO"} ?m)]
            (or-join [?h ?d]
              (and
                [?h :block/ref-pages ?p]
                [?p :block/journal? true]
                [?p :block/journal-day ?d])
              [?h :block/scheduled ?d]
              [?h :block/deadline ?d])
            [(and
              [(< ?d ?next)]
              [(> ?d ?today)])]]
    :inputs [:3d-after :today] 
    :table-view? false
    :breadcrumb-show? false
    :collapsed? true}
1 Like