update viewer for atlas series
This commit is contained in:
+8
-8
@@ -1450,9 +1450,9 @@ def create_series_findings(request):
|
||||
structure_ids = json.loads(request.POST.get("structures"))
|
||||
condition_ids = json.loads(request.POST.get("conditions"))
|
||||
description = request.POST.get("description")
|
||||
annotation_json = request.POST.get("annotation_json")
|
||||
viewport_json = request.POST.get("viewport_json")
|
||||
current_image_id_index = request.POST.get("current_image_id_index")
|
||||
#annotation_json = request.POST.get("annotation_json")
|
||||
#viewport_json = request.POST.get("viewport_json")
|
||||
#current_image_id_index = request.POST.get("current_image_id_index")
|
||||
annotation_json_3d = request.POST.get("annotation_json_3d")
|
||||
viewer_state_3d = request.POST.get("viewer_state_3d")
|
||||
|
||||
@@ -1465,20 +1465,20 @@ def create_series_findings(request):
|
||||
sf = get_object_or_404(SeriesFinding, pk=series_finding_id)
|
||||
sf.series = series
|
||||
sf.description = description
|
||||
sf.annotation_json = annotation_json
|
||||
sf.viewport_json = viewport_json
|
||||
#sf.annotation_json = annotation_json
|
||||
#sf.viewport_json = viewport_json
|
||||
else:
|
||||
sf = SeriesFinding.objects.create(
|
||||
series=series,
|
||||
description=description,
|
||||
annotation_json=annotation_json,
|
||||
viewport_json=viewport_json,
|
||||
#annotation_json=annotation_json,
|
||||
#viewport_json=viewport_json,
|
||||
)
|
||||
|
||||
sf.findings.set(findings)
|
||||
sf.structures.set(structures)
|
||||
sf.conditions.set(conditions)
|
||||
sf.current_image_id_index = current_image_id_index
|
||||
#sf.current_image_id_index = current_image_id_index
|
||||
sf.annotation_json_3d = annotation_json_3d
|
||||
sf.viewer_state_3d = viewer_state_3d
|
||||
sf.save()
|
||||
|
||||
Reference in New Issue
Block a user