Fix type of minimum_similarity configuration option

This commit is contained in:
Marty Oehme 2022-12-22 22:39:12 +01:00
parent b98d473cc4
commit 436342c730
Signed by: Marty
GPG Key ID: 73BA40D5AFAF49C9
1 changed files with 1 additions and 1 deletions

View File

@ -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"""