From c991e5875c0e716ad243db3f2d9c538d8abb1dac Mon Sep 17 00:00:00 2001 From: Jonas Kulhanek Date: Sat, 7 Dec 2019 14:51:40 +0100 Subject: [PATCH] change pub key --- pubs/commands/add_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubs/commands/add_cmd.py b/pubs/commands/add_cmd.py index 1aa2ec7..b932a08 100644 --- a/pubs/commands/add_cmd.py +++ b/pubs/commands/add_cmd.py @@ -119,7 +119,7 @@ def command(conf, args): citekey = args.citekey if citekey is None: - base_key = bibstruct.extract_citekey(bibentry) + base_key = bibstruct.generate_citekey(bibentry) citekey = rp.unique_citekey(base_key, bibentry) elif citekey in rp: ui.error('citekey already exist {}.'.format(citekey))