This commit is contained in:
Ross
2021-08-20 09:45:21 +01:00
parent c4f42b6a75
commit 04657ca86c
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -315,10 +315,6 @@ class Rapid(models.Model):
def get_image_annotations(self):
annotations = [i.image_annotations for i in self.images.all() if not i.feedback_image]
a = set(annotations)
a.remove("")
if len(a) < 1:
annotations = ""
return json.dumps([i.image_annotations for i in self.images.all() if not i.feedback_image])
def get_laterality_string(self):
+1 -1
View File
@@ -183,7 +183,7 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
console.log("loadAnnotations", imageId, annotations);
const toolStateManager = cornerstoneTools.globalImageIdSpecificToolStateManager;
if (annotation == undefined || annotation.length < 1) { return }
if (annotation == undefined || annotation.length < 1 || annotation == [undefined]) { return }
console.log(annotation);
let tool_state_no_id = JSON.parse(annotation);