From b32ced6f5a53d82517df1f43aa0216f785d895f0 Mon Sep 17 00:00:00 2001 From: Greg Laabs Date: Fri, 8 Dec 2017 19:42:34 -0800 Subject: [PATCH] Lowercase the args tag when building the command XML The args tag is always lowercase, while the command name is Capitalized or CamelCased --- sucks/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sucks/__init__.py b/sucks/__init__.py index 9d2fd92..eabcc7f 100644 --- a/sucks/__init__.py +++ b/sucks/__init__.py @@ -242,7 +242,7 @@ class VacBotCommand: def to_xml(self): ctl = ET.Element('ctl', {'td': self.name}) if self.args: - inner = ET.Element(self.name, self.args) + inner = ET.Element(self.name.lower(), self.args) ctl.append(inner) return ctl