From 80b615651c46df0d4a69439cb099b523090d83ca Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 22 Dec 2022 19:39:14 +0100 Subject: [PATCH] Refactor extract function to take citekeys not papers --- extract/extract.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extract/extract.py b/extract/extract.py index 990cffe..83a246e 100644 --- a/extract/extract.py +++ b/extract/extract.py @@ -75,15 +75,15 @@ class ExtractPlugin(PapersPlugin): ) if not citekeys: return - papers = self._gather_papers(citekeys) - all_annotations = self.extract(papers) + all_annotations = self.extract(citekeys) if args.write: self._to_notes(conf, all_annotations, args.edit) else: self._to_stdout(all_annotations) self.repository.close() - def extract(self, papers): + def extract(self, citekeys): + papers = self._gather_papers(citekeys) papers_annotated = [] for paper in papers: file = self._get_file(paper)