Skip to content

Commit

Permalink
Revert to @rend, again
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed May 25, 2020
1 parent 8418945 commit 4421d96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/imxml2django.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4421d96

Please sign in to comment.