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

View file

@ -40,7 +40,7 @@ class ExtractPlugin(PapersPlugin):
# or `:: {annotation} :: {page} ::` # or `:: {annotation} :: {page} ::`
# and so on # and so on
self.onimport = conf["plugins"].get("extract", {}).get("onimport", False) 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): def update_parser(self, subparsers, conf):
"""Allow the usage of the pubs extract subcommand""" """Allow the usage of the pubs extract subcommand"""