|
@@ -751,10 +751,8 @@ class imageBrowserLogic(ScriptedLoadableModuleLogic):
|
|
copyFields=[self.isetup['participantField'],'patientCode','visitCode','User']
|
|
copyFields=[self.isetup['participantField'],'patientCode','visitCode','User']
|
|
outRow={x:self.segmentationEntry[x] for x in copyFields}
|
|
outRow={x:self.segmentationEntry[x] for x in copyFields}
|
|
sList=self.isetup['datasets']['SegmentationsList']
|
|
sList=self.isetup['datasets']['SegmentationsList']
|
|
- resp=self.db.modifyRows('insert',sList['project'],
|
|
|
|
|
|
+ respJSON=self.db.modifyRows('insert',sList['project'],
|
|
sList['schema'],sList['query'],[outRow])
|
|
sList['schema'],sList['query'],[outRow])
|
|
- encoding=chardet.detect(resp)['encoding']
|
|
|
|
- respJSON=json.loads(resp.decode(encoding))
|
|
|
|
outRow=respJSON['rows'][0]
|
|
outRow=respJSON['rows'][0]
|
|
#print(outRow)
|
|
#print(outRow)
|
|
|
|
|