Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 2d6778a

Browse files
committed
Modified the __read_qml() function to specify the item we're searching for.
1 parent d218708 commit 2d6778a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

INPMT/__utils/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ def __set_cfg_val(var, value):
136136
print("\n")
137137

138138

139-
def __read_qml(path_qml: AnyStr) -> List:
139+
def __read_qml(path_qml: AnyStr, type: AnyStr) -> List:
140140
xml_data = xml.dom.minidom.parse(path_qml)
141141
legend = []
142-
for item in xml_data.getElementsByTagName("item"):
142+
for item in xml_data.getElementsByTagName(type):
143143
legend.append([item.getAttribute("value"), item.getAttribute("label")])
144144
return legend

0 commit comments

Comments
 (0)