Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Language
  • Loading branch information
Klaus Thoden committed May 29, 2018
1 parent 4ffba4b commit c9bd759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imxml2django.py
Expand Up @@ -786,10 +786,10 @@ def djangoParseHeadline(xmlElement):
xmlEOAchapter = etree.Element("EOAchapter")
xmlEOAchapter.set("type","regular")

xmlLanguage = xmlChapter.find(".//language")
xmlLanguage = xmlChapter.get("language")
if xmlLanguage is not None:
# KT changing this after separating the big script
strLanguage = xmlLanguage.text #or "english"
strLanguage = xmlLanguage #or "english"
else:
strLanguage = "english"

Expand Down

0 comments on commit c9bd759

Please sign in to comment.