empty strings should also be added as attributes
This commit is contained in:
+1
-3
@@ -20,9 +20,7 @@ class Category(object):
|
||||
if self.attributes:
|
||||
attributes = SubElement(root, "attributes")
|
||||
for k, v in self.attributes.items():
|
||||
s = str(v)
|
||||
if s:
|
||||
SubElement(attributes, k).text = s
|
||||
SubElement(attributes, k).text = str(v)
|
||||
|
||||
return root
|
||||
|
||||
|
||||
Reference in New Issue
Block a user