memory: avoid duplicate in getParamsCategories
This commit is contained in:
parent
15016a7510
commit
d7b9f33a65
1 changed files with 3 additions and 1 deletions
|
|
@ -376,7 +376,9 @@ class Param():
|
|||
"""return the categories availables"""
|
||||
categories=[]
|
||||
for cat in self.dom.getElementsByTagName("category"):
|
||||
categories.append(cat.getAttribute("name"))
|
||||
name = cat.getAttribute("name")
|
||||
if name not in categories:
|
||||
categories.append(cat.getAttribute("name"))
|
||||
return categories
|
||||
|
||||
def setParam(self, name, value, category, profile_key='@NONE@'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue