Merge "fix upload results to testrail"
diff --git a/update_testrail_xml/reporter.py b/update_testrail_xml/reporter.py
index e0c9dff..a88bea9 100644
--- a/update_testrail_xml/reporter.py
+++ b/update_testrail_xml/reporter.py
@@ -182,7 +182,7 @@
             for child in root:
                 try:
                     if child.attrib['classname'] == case[0] and child.attrib['name'] == case[1]:
-                        if (child[0].tag == '0.000' or
+                        if (child.attrib['time'] == '0.000' or
                                 child[0].tag == 'error'):
                             child.clear()
                 except KeyError: