Close repository after completion
This commit is contained in:
parent
c2b983a1e5
commit
88de195870
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,7 @@ from ...utils import resolve_citekey_list
|
||||||
from ...content import write_file
|
from ...content import write_file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ExtractPlugin(PapersPlugin):
|
class ExtractPlugin(PapersPlugin):
|
||||||
"""Make the pubs repository also a git repository.
|
"""Make the pubs repository also a git repository.
|
||||||
|
|
||||||
|
@ -36,6 +37,7 @@ class ExtractPlugin(PapersPlugin):
|
||||||
self.repository = repo.Repository(conf)
|
self.repository = repo.Repository(conf)
|
||||||
self.pubsdir = os.path.expanduser(conf["main"]["pubsdir"])
|
self.pubsdir = os.path.expanduser(conf["main"]["pubsdir"])
|
||||||
self.broker = self.repository.databroker
|
self.broker = self.repository.databroker
|
||||||
|
|
||||||
self.quiet = conf["plugins"].get("extract", {}).get("quiet", False)
|
self.quiet = conf["plugins"].get("extract", {}).get("quiet", False)
|
||||||
# self.manual = conf['plugins'].get('git', {}).get('manual', False)
|
# self.manual = conf['plugins'].get('git', {}).get('manual', False)
|
||||||
# self.force_color = conf['plugins'].get('git', {}).get('force_color', True)
|
# self.force_color = conf['plugins'].get('git', {}).get('force_color', True)
|
||||||
|
@ -81,6 +83,7 @@ class ExtractPlugin(PapersPlugin):
|
||||||
self.to_notes(conf, all_annotations, args.edit)
|
self.to_notes(conf, all_annotations, args.edit)
|
||||||
else:
|
else:
|
||||||
self.to_stdout(all_annotations)
|
self.to_stdout(all_annotations)
|
||||||
|
self.repository.close()
|
||||||
|
|
||||||
def extract(self, papers):
|
def extract(self, papers):
|
||||||
papers_annotated = []
|
papers_annotated = []
|
||||||
|
|
Loading…
Reference in a new issue