Refactor extract function to take citekeys not papers
This commit is contained in:
parent
ef24e544fc
commit
80b615651c
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue