File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
job_compassplus/tx_parse_xml Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -33,18 +33,17 @@ def process(path: str):
33
33
if not layer_ads_dir .is_dir ():
34
34
continue
35
35
36
- for module_path in layer_ads_dir .glob ("*/src" ):
37
- for class_path in module_path .glob ("*.xml" ):
38
- model = ET .fromstring (class_path .read_bytes ())
39
- for task_el in model .findall (".//xsc:Task" , namespaces = NS ):
40
- assignee = task_el .attrib ["Assignee" ].strip ()
41
- if not assignee :
42
- assignee = "<unknown>"
43
-
44
- assignee_by_number [assignee ] += 1
45
-
46
- task_type = task_el .attrib ["Type" ]
47
- type_by_number [task_type ] += 1
36
+ for class_path in layer_ads_dir .glob ("*/src/*.xml" ):
37
+ model = ET .fromstring (class_path .read_bytes ())
38
+ for task_el in model .findall (".//xsc:Task" , namespaces = NS ):
39
+ assignee = task_el .attrib ["Assignee" ].strip ()
40
+ if not assignee :
41
+ assignee = "<unknown>"
42
+
43
+ assignee_by_number [assignee ] += 1
44
+
45
+ task_type = task_el .attrib ["Type" ]
46
+ type_by_number [task_type ] += 1
48
47
49
48
indent1 = " "
50
49
You can’t perform that action at this time.
0 commit comments