Browse Source

bin/notes-collect-metadata: ignore same-page anchor links

master
Brennen Bearnes 1 year ago
parent
commit
1670d4014d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      home/bin/notes-collect-metadata

+ 4
- 0
home/bin/notes-collect-metadata View File

@ -43,6 +43,10 @@ def extract_values(elem, doc):
if isinstance(elem, Link):
link_target = elem.url
# Skip in-page anchors, for now:
if link_target.startswith('#'):
return;
# Insert a row of data
c.execute(
"INSERT OR IGNORE INTO links VALUES (?, ?)",


Loading…
Cancel
Save