From d21d463a4eedd26e971309233cf03ecd0bf94880 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Mon, 16 Nov 2020 15:07:44 +0100 Subject: [PATCH] Fix comment. --- app/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/db.py b/app/db.py index dcbab0e..85febbd 100644 --- a/app/db.py +++ b/app/db.py @@ -190,7 +190,7 @@ def nodes_by_outlink(wikilink): return nodes def subnodes_by_outlink(wikilink): - # This doesn't work. + # This doesn't work. It matches too much/too little for some reason. Debug someday? # subnodes = [subnode for subnode in all_subnodes() if [wikilink for wikilink in subnode.outlinks if fuzz.ratio(subnode.wikilink, wikilink) > FUZZ_FACTOR]] subnodes = [subnode for subnode in all_subnodes() if canonical_wikilink(wikilink) in subnode.outlinks] return subnodes