Skip to content

Commit

Permalink
Fix: wrong method commited for deadline predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-shariff committed May 1, 2024
1 parent f2ae8ef commit 55344b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Example configuration:
- =todo (REGEXP &optional EXACT)= :: Similar to ~file~, tests the todo state of a node.
- =priority (REGEXP &optional EXACT)= :: Similar to ~file~, tests the priority of a node.
- =scheduled (COMPARISON TIME-STRING)= :: Compares the ~scheduled~ of the node with ~TIME-STAMP~ based on ~COMPARISON~. ~TIME-STAMP~ is any valid value for [[https://orgmode.org/manual/The-date_002ftime-prompt.html][org date-time prompt]]. ~COMPARISON~ is either ~<~ or ~>~. Example: ~(scheduled > "-3w")~
- =deadline= :: Same as ~scheduled~, tests the ~deadline~ of a node.
- =deadline= (COMPARISON TIME-STRING) :: Same as ~scheduled~, tests the ~deadline~ of a node.
- =title (REGRXP &optional EXACT)= :: Similar to ~file~, tests the title of a node.
- =properties (PROP PROP-VAL)= :: Tests if the value of the property of a node PROP is a match to PROP-VAL. PROP-VAL can be a regular expression.
- =tags (TAG1 TAG2 ...)= :: Tests if the tags of a node have TAG1, TAG2, etc.
Expand Down
2 changes: 1 addition & 1 deletion org-roam-ql.el
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ Can be used in the minibuffer or when writting querries."
(todo "Compare to `todo' of a node" org-roam-node-todo . org-roam-ql--predicate-s-match)
(priority "Compare to `priority' of a node" org-roam-node-priority . org-roam-ql--predicate-s-match)
(scheduled "Compare `scheduled' of a node to arg based on comparison parsed (< or >)" org-roam-node-scheduled . org-roam-ql--predicate-compare-time)
(deadline "Compare `deadline' of a node to arg based on comparison parsed (< or >)" org-roam-node-deadline . org-roam-ql--predicate-time-less-p)
(deadline "Compare `deadline' of a node to arg based on comparison parsed (< or >)" org-roam-node-deadline . org-roam-ql--predicate-compare-time)
(title "Compare to `title' of a node" org-roam-node-title . org-roam-ql--predicate-s-match)
(properties "Compare to `properties' of a node"
org-roam-node-properties . org-roam-ql--predicate-property-match)
Expand Down

0 comments on commit 55344b1

Please sign in to comment.