|
|
@ -51,6 +51,7 @@ def command(conf, args):
|
|
|
|
if meta:
|
|
|
|
if meta:
|
|
|
|
new_paper = Paper(paper.citekey, paper.bibdata,
|
|
|
|
new_paper = Paper(paper.citekey, paper.bibdata,
|
|
|
|
metadata=content)
|
|
|
|
metadata=content)
|
|
|
|
|
|
|
|
rp.push_paper(new_paper, overwrite=True, event=False)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
new_paper = Paper.from_bibentry(content,
|
|
|
|
new_paper = Paper.from_bibentry(content,
|
|
|
|
metadata=paper.metadata)
|
|
|
|
metadata=paper.metadata)
|
|
|
@ -62,7 +63,7 @@ def command(conf, args):
|
|
|
|
choice = options[ui.input_choice(
|
|
|
|
choice = options[ui.input_choice(
|
|
|
|
options, ['o', 'e', 'a'],
|
|
|
|
options, ['o', 'e', 'a'],
|
|
|
|
question='A paper already exists with this citekey.'
|
|
|
|
question='A paper already exists with this citekey.'
|
|
|
|
)]
|
|
|
|
)]
|
|
|
|
|
|
|
|
|
|
|
|
if choice == 'abort':
|
|
|
|
if choice == 'abort':
|
|
|
|
break
|
|
|
|
break
|
|
|
|