This commit is contained in:
matic_t 2020-08-06 05:40:26 -07:00
parent efe4d07464
commit 83396ef8a0

View File

@ -32,7 +32,7 @@ class Entry(Data):
comment = entry_xml.querySelector("head comment") comment = entry_xml.querySelector("head comment")
self.status = status.textContent if status else "" self.status = status.textContent if status else ""
self.headword = headword.textContent if headword else "" self.headword = headword.textContent if headword else ""
self.headword_type = headword.getAttribute("type") if .hasAttribute("type") else None self.headword_type = headword.getAttribute("type") if headword.hasAttribute("type") else None
self.headword_audio = headword.getAttribute("audio") if headword.hasAttribute("audio") else None self.headword_audio = headword.getAttribute("audio") if headword.hasAttribute("audio") else None
self.grammar = grammar.textContent if grammar else "" self.grammar = grammar.textContent if grammar else ""
self.comment = comment.textContent if comment else "" self.comment = comment.textContent if comment else ""