Modify script to avoid duplication in modelList. (Ref: DCS16913) Change-Id: I2f0d5eaafee7b391b3e6af58e01f4ec51f4d13cd Former-commit-id: 6ee88ef090e525fd1552d0c3a48f09c6a6722623
This commit is contained in:
parent
b9805ddf2e
commit
ce676e7137
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ class Procedure (SmartScript.SmartScript):
|
|||
|
||||
return trList
|
||||
|
||||
# Returns a list of model names matching the specified model name,
|
||||
# Returns a list of database IDs matching the specified model name,
|
||||
# weather element name and level
|
||||
def getModelList(self, modelName, weName, weLevel):
|
||||
modelList = []
|
||||
|
@ -126,7 +126,7 @@ class Procedure (SmartScript.SmartScript):
|
|||
if modelName in dbID.modelName():
|
||||
if weName in pName:
|
||||
if weLevel in level:
|
||||
if dbID.modelIdentifier() not in modelList:
|
||||
if dbID not in modelList:
|
||||
modelList.append(dbID)
|
||||
return modelList
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue