Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions API/Classes/Case/OsemosysClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,10 +947,11 @@ def updateTEViewData(self, casename, ScId, GroupId, ParamId, TechId, EmisId, val
jsonData = File.readFile(jsonPath)

for obj in jsonData[ParamId][ScId]:
for k,v in obj.items():
if ((k == TechId if TechId is not None else True) and
(k == EmisId if EmisId is not None else True)):
obj[k] = value
if TechId is not None and TechId in obj:
if EmisId is not None and EmisId in obj[TechId]:
obj[TechId][EmisId] = value
elif EmisId is None:
obj[TechId] = value
File.writeFile( jsonData, jsonPath)
except(IOError):
raise IOError
Loading