From 436342c730edffd48863fa92a2780ed33614458b Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 22 Dec 2022 22:39:12 +0100 Subject: [PATCH] Fix type of minimum_similarity configuration option --- extract/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extract/extract.py b/extract/extract.py index 9b8fa49..a1ed4c8 100644 --- a/extract/extract.py +++ b/extract/extract.py @@ -40,7 +40,7 @@ class ExtractPlugin(PapersPlugin): # or `:: {annotation} :: {page} ::` # and so on self.onimport = conf["plugins"].get("extract", {}).get("onimport", False) - self.minimum_similarity = conf["plugins"].get("extract", {}).get("minimum_similarity", 0.75) + self.minimum_similarity = float(conf["plugins"].get("extract", {}).get("minimum_similarity", 0.75)) def update_parser(self, subparsers, conf): """Allow the usage of the pubs extract subcommand"""