diff --git a/papis_extract/__init__.py b/papis_extract/__init__.py index 76d5acd..9b6a252 100644 --- a/papis_extract/__init__.py +++ b/papis_extract/__init__.py @@ -21,9 +21,9 @@ DEFAULT_OPTIONS = { "plugins.extract": { "tags": {"important": "red", "toread": "blue"}, "on_import": False, - "minimum_similarity": 0.75, # for checking against existing annotations - "minimum_similarity_content": 0.9, # for checking if highlight or note - "minimum_similarity_color": 0.833 # for matching tag to color + "minimum_similarity": 0.75, # for checking against existing annotations + "minimum_similarity_content": 0.9, # for checking if highlight or note + "minimum_similarity_color": 0.833, # for matching tag to color } } papis.config.register_default_settings(DEFAULT_OPTIONS) diff --git a/papis_extract/annotation_data.py b/papis_extract/annotation_data.py index 3036ff1..298f964 100644 --- a/papis_extract/annotation_data.py +++ b/papis_extract/annotation_data.py @@ -71,8 +71,7 @@ class Annotation: ) nearest = None minimum_similarity = ( - papis.config.getfloat("minimum_similarity_color", "plugins.extract") - or 1.0 + papis.config.getfloat("minimum_similarity_color", "plugins.extract") or 1.0 ) for name, values in COLORS.items(): similarity_ratio = self._color_similarity_ratio(values, annot_colors)