VLab Issue #14839 - DR18499 HTI Improvements:TCFloodingRainThreat; fixes #14839

Modify script to avoid duplication in modelList. (Ref: DCS16913)

Change-Id: I2f0d5eaafee7b391b3e6af58e01f4ec51f4d13cd

Former-commit-id: 6ee88ef090e525fd1552d0c3a48f09c6a6722623
This commit is contained in:
Ana Rivera 2016-01-13 12:09:54 +00:00
parent b9805ddf2e
commit ce676e7137

View file

@ -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