From 3e67a395b5eae29265c3d4a8c8b2b1ef60709999 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Wed, 11 Sep 2019 12:48:19 +0000 Subject: [PATCH] Updated ietf.sync.rfceditor.parse_index() to use the new rfc-index schema (changed placement of the page-count element). - Legacy-Id: 16729 --- ietf/sync/rfceditor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ietf/sync/rfceditor.py b/ietf/sync/rfceditor.py index 609360215..8a5f41610 100644 --- a/ietf/sync/rfceditor.py +++ b/ietf/sync/rfceditor.py @@ -293,6 +293,7 @@ def parse_index(response): updated_by = extract_doc_list(node, "updated-by") obsoletes = extract_doc_list(node, "obsoletes") obsoleted_by = extract_doc_list(node, "obsoleted-by") + pages = get_child_text(node, "page-count") stream = get_child_text(node, "stream") wg = get_child_text(node, "wg_acronym") if wg and ((wg == "NON WORKING GROUP") or len(wg) > 15): @@ -302,8 +303,6 @@ def parse_index(response): pages = "" for fmt in node.getElementsByTagName("format"): l.append(get_child_text(fmt, "file-format")) - if get_child_text(fmt, "file-format") == "ASCII": - pages = get_child_text(fmt, "page-count") file_formats = (",".join(l)).lower() abstract = ""