From 6b8c3e51e7cca86106490a2b90851afc3d8883c5 Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 6 Apr 2020 16:52:06 +0200 Subject: [PATCH] readabilite: fix threshold feature Awkward typo... --- morss/readabilite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/readabilite.py b/morss/readabilite.py index 00c37a1..87afdd4 100644 --- a/morss/readabilite.py +++ b/morss/readabilite.py @@ -186,7 +186,7 @@ def clean_node(node, keep_threshold=None): # this is (or a removed element waiting for GC) return - if keep_threshold is not None and get_score(node) <= keep_threshold: + if keep_threshold is not None and get_score(node) >= keep_threshold: # high score, so keep return