diff options
| author | 2026-05-18 23:01:54 +0300 | |
|---|---|---|
| committer | 2026-05-18 23:01:54 +0300 | |
| commit | bc448538adb2cb1cd54435ecedc0dca5ca5ebb9e (patch) | |
| tree | 49e8649c25e1050708790ee12bea1604fecdce3a /itkxka.md | |
| parent | snapshot: 2026-05-05 (diff) | |
| download | zk-bc448538adb2cb1cd54435ecedc0dca5ca5ebb9e.tar.gz zk-bc448538adb2cb1cd54435ecedc0dca5ca5ebb9e.tar.bz2 zk-bc448538adb2cb1cd54435ecedc0dca5ca5ebb9e.tar.lz zk-bc448538adb2cb1cd54435ecedc0dca5ca5ebb9e.tar.xz zk-bc448538adb2cb1cd54435ecedc0dca5ca5ebb9e.tar.zst zk-bc448538adb2cb1cd54435ecedc0dca5ca5ebb9e.zip | |
snapshot: 2026-05-18
Diffstat (limited to '')
| -rw-r--r-- | itkxka.md | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/itkxka.md b/itkxka.md new file mode 100644 index 0000000..1b61f01 --- /dev/null +++ b/itkxka.md @@ -0,0 +1,38 @@ +--- +id: itkxka +date: 2026-05-18T22:45:08+0300 +languages: [en] +aliases: + +reviews: + +tags: +- draft +- invention +- snippet + +- zettelkasten +--- +# Exclude missing-backlinks to excluded notes in ZK + +```diff +diff --git a/internal/adapter/sqlite/note_dao.go b/internal/adapter/sqlite/note_dao.go +index 3910ba6..9d0a07a 100644 +--- a/internal/adapter/sqlite/note_dao.go ++++ b/internal/adapter/sqlite/note_dao.go +@@ -688,6 +688,7 @@ WHERE collection_id IN (SELECT id FROM collections t WHERE kind = '%s' AND (%s)) + ) + WHERE incoming.target_id IS NOT NULL + AND outgoing.source_id IS NULL ++ AND incoming.source_id NOT IN (` + joinNoteIDs(opts.ExcludeIDs, ",") + `) + )`) + } + +``` + + +## Up +- + +## Down +- |
