handling new entries
This commit is contained in:
parent
094cc7afcf
commit
48c51c38de
|
@ -35,8 +35,8 @@ class Entry(Data):
|
|||
comment = entry_xml.querySelector("head comment")
|
||||
self.status = status.textContent if status else ""
|
||||
self.headword = headword.textContent if headword else ""
|
||||
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_type = headword.getAttribute("type") if headword and headword.hasAttribute("type") else None
|
||||
self.headword_audio = headword.getAttribute("audio") if headword and headword.hasAttribute("audio") else None
|
||||
self.grammar = grammar.textContent if grammar else ""
|
||||
self.comment = comment.textContent if comment else ""
|
||||
self.variants = [v.textContent for v in entry_xml.querySelectorAll("head variantList variant")]
|
||||
|
|
Loading…
Reference in New Issue
Block a user