update bibxml-ids generation on draft submission.

- Legacy-Id: 19783
This commit is contained in:
Robert Sparks 2021-12-14 21:53:10 +00:00
parent b7eec8ae26
commit f6035850d8

View file

@ -456,6 +456,9 @@ def post_submission(request, submission, approved_doc_desc, approved_subm_desc):
ref_file_name = os.path.join(os.path.join(settings.BIBXML_BASE_PATH, 'bibxml-ids'), 'reference.I-D.%s.xml' % (draft.name[6:], ))
with io.open(ref_file_name, "w", encoding='utf-8') as f:
f.write(ref_text)
ref_rev_file_name = os.path.join(os.path.join(settings.BIBXML_BASE_PATH, 'bibxml-ids'), 'reference.I-D.%s-%s.xml' % (draft.name[6:], draft.rev ))
with io.open(ref_rev_file_name, "w", encoding='utf-8') as f:
f.write(ref_text)
log.log(f"{submission.name}: done")