From 4281dba9c2940ef7dfe6645fe61b2bf9c4fe3eaf Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 22 Dec 2022 22:48:47 +0100 Subject: [PATCH] Fix typo in on_import configuration option --- extract/extract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extract/extract.py b/extract/extract.py index a1ed4c8..781267b 100644 --- a/extract/extract.py +++ b/extract/extract.py @@ -39,7 +39,7 @@ class ExtractPlugin(PapersPlugin): # e.g. `> [{page}] {annotation}` # or `:: {annotation} :: {page} ::` # and so on - self.onimport = conf["plugins"].get("extract", {}).get("onimport", False) + self.on_import = conf["plugins"].get("extract", {}).get("on_import", False) self.minimum_similarity = float(conf["plugins"].get("extract", {}).get("minimum_similarity", 0.75)) def update_parser(self, subparsers, conf): @@ -226,7 +226,7 @@ class ExtractPlugin(PapersPlugin): def modify_event(event): if ExtractPlugin.is_loaded(): plg = ExtractPlugin.get_instance() - if plg.onimport: + if plg.on_import: all_annotations = plg.extract([event.citekey]) if all_annotations[0][1]: plg._to_notes(all_annotations, plg.note_extension)