few small fixes

This commit is contained in:
Ross
2024-02-07 14:04:42 +00:00
parent b1da429036
commit 9ff395325f
3 changed files with 9 additions and 4 deletions
@@ -50,7 +50,9 @@
<button hx-get="{% url 'atlas:case_order_dicom' pk=case.pk %}"
title="order dicom by slice location"
hx-target="this"
hx-swap="outerHTML">
hx-swap="outerHTML"
hx-confirm="This will reorder all case series based upon slice location"
>
Order all series dicoms by slice location
</button>
</details>
+4 -2
View File
@@ -338,13 +338,15 @@ def finding_detail(request, pk):
@login_required
@user_is_author_or_atlas_editor
def author_detail(request, pk):
# logging.debug(Author.objects.all())
# author = get_object_or_404(Author, pk=pk)
author = User.objects.get(pk=pk)
atlas = Case.objects.filter(author=pk)
if request.user.pk == pk:
atlas = Case.objects.filter(author=pk)
else:
atlas = Case.objects.filter(author=pk, open_access=True)
return render(
request, "atlas/category_detail.html", {"category": author, "atlas": atlas}
+1
View File
@@ -217,3 +217,4 @@ def get_image_hash(img, dataset=None, hash_type="blake3", direct_pixel_data=True
return hash, False
return hash, is_dicom