diff --git a/Osmose.py b/Osmose.py index 9159a98..a3d5af5 100644 --- a/Osmose.py +++ b/Osmose.py @@ -206,8 +206,8 @@ def osmose_one_node(node): images = save_workspace(images, node) print(images) - images = add_info_to_images(images, node) - node["images"]=images + images = add_info_to_images(images, node) + node["images"]=images - with open(path+"/"+str(node["id"])+'/data.json', 'w') as foo: - json.dump(node, foo) + with open(path+"/"+str(node["id"])+'/data.json', 'w') as foo: + json.dump(node, foo) diff --git a/UserInterface/NodeDetails.py b/UserInterface/NodeDetails.py index 12cc4bf..906b10e 100644 --- a/UserInterface/NodeDetails.py +++ b/UserInterface/NodeDetails.py @@ -54,7 +54,7 @@ def saveImages(self): for i, image in enumerate(self.images): imageWidget = QLabel() imagePixmap = QPixmap(image["path"]) - imagePixmap = imagePixmap.scaledToHeight(390) + imagePixmap = imagePixmap.scaledToHeight(224) imageWidget.setPixmap(imagePixmap) self.imagesLayout.addWidget(imageWidget, 0, i)