Skip to content

Commit

Permalink
Fix org-roam-ql--expand-link including aliases in query-nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-shariff committed Sep 30, 2023
1 parent 0123565 commit 37e3fe7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion org-roam-ql.el
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,10 @@ COMBINE can be :and or :or. If :and, only nodes that have backlinks
to all results of source-or-query, else if have backlinks to any of
them. If is-backlink is nil, return forward links, else return
backlinks"
(let* ((query-nodes (org-roam-ql--nodes-cached source-or-query))
(let* ((query-nodes
;; NOTE: -compare-fn is set in the `org-roam-ql--expand-query'
(-uniq
(org-roam-ql--nodes-cached source-or-query)))
(query-nodes-count (length query-nodes))
(target-col (if is-backlink 'links:source 'links:dest))
(test-col (if is-backlink 'links:dest 'links:source)))
Expand Down

0 comments on commit 37e3fe7

Please sign in to comment.