From 4421d96574f0efbd608f92775cd3aea97c73b97a Mon Sep 17 00:00:00 2001 From: kthoden Date: Mon, 25 May 2020 09:25:42 +0200 Subject: [PATCH] Revert to @rend, again --- src/imxml2django.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/imxml2django.py b/src/imxml2django.py index e1ec4ba..c19a7f9 100755 --- a/src/imxml2django.py +++ b/src/imxml2django.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8; mode: python -*- -# Time-stamp: <2020-04-08 17:46:10 (kthoden)> +# Time-stamp: <2020-05-25 09:25:29 (kthoden)> """ Create an XML file that can be inserted into the Django database @@ -1096,7 +1096,7 @@ def treat_verselines(verse_element): # Process Section Title xmlEOAsection = etree.Element("EOAsection") xmlEOAsection.set("order", str(intObjectNumber)) - if xmlChapterChild.get("n") != "nonumber": + if xmlChapterChild.get("rend") != "nonumber": xmlEOAsection.set("id", xmlChapterChild.get("id")) xmlEOAsection.set("number", dictSections[xmlChapterChild.get("id")]) intObjectNumber += 1 @@ -1110,7 +1110,7 @@ def treat_verselines(verse_element): # Process Subsection Title xmlEOAsubsection = etree.Element("EOAsubsection") xmlEOAsubsection.set("order", str(intObjectNumber)) - if xmlSectionChild.get("n") != "nonumber": + if xmlSectionChild.get("rend") != "nonumber": xmlEOAsubsection.set("id", xmlSectionChild.get("id")) xmlEOAsubsection.set("number", dictSections[xmlSectionChild.get("id")]) intObjectNumber += 1