Lowercase the args tag when building the command XML

The args tag is always lowercase, while the command name is Capitalized or CamelCased
This commit is contained in:
Greg Laabs
2017-12-08 19:42:34 -08:00
parent 072db977ef
commit b32ced6f5a
+1 -1
View File
@@ -242,7 +242,7 @@ class VacBotCommand:
def to_xml(self): def to_xml(self):
ctl = ET.Element('ctl', {'td': self.name}) ctl = ET.Element('ctl', {'td': self.name})
if self.args: if self.args:
inner = ET.Element(self.name, self.args) inner = ET.Element(self.name.lower(), self.args)
ctl.append(inner) ctl.append(inner)
return ctl return ctl