upsy daisys

This commit is contained in:
matic_t
2020-07-16 03:46:48 -07:00
parent b010414bfe
commit 9c007f6dd6
4 changed files with 9 additions and 6 deletions

View File

@@ -32,10 +32,11 @@ def export_entry(entry):
homonymy = doc.createElement("homonymy")
headword.appendChild(homonymy)
for h in entry.homonymy:
for hFeature in entry.homonymy:
feature = doc.createElement("homonymyFeature")
feature.textContent = h.value
feature.setAttribute("name", h["name"])
feature.textContent = hFeature.value
# Can't use hFeature.name, because Python has name reserver and so it becomes py_name in JS
feature.setAttribute("name", hFeature["name"])
homonymy.appendChild(feature)