fix new dicom diff
This commit is contained in:
+4
-3
@@ -1,4 +1,5 @@
|
||||
import json
|
||||
import pprint
|
||||
from dal import autocomplete
|
||||
from django.shortcuts import render, get_object_or_404, redirect
|
||||
from django import forms
|
||||
@@ -1064,11 +1065,11 @@ def image_diff(request):
|
||||
|
||||
diff = difflib.HtmlDiff().make_table(f, s)
|
||||
|
||||
#dict_diff = compare_dicom_datasets(first_ds, second_ds)
|
||||
dict_diff = pprint.pformat(compare_dicom_datasets(first_ds, second_ds))
|
||||
|
||||
return HttpResponse(diff)
|
||||
#return HttpResponse(diff)
|
||||
|
||||
#return HttpResponse(f"<pre>{dict_diff}</pre><br/>{diff}")
|
||||
return HttpResponse(f"<pre>{dict_diff}</pre><br/>{diff}")
|
||||
|
||||
|
||||
return HttpResponse("Fail")
|
||||
|
||||
Reference in New Issue
Block a user