Remove 'debug view' as per comment in the view

This commit is contained in:
Klaas van Schelven
2024-03-26 23:14:36 +01:00
parent f970c50aed
commit 78fbc6481a
3 changed files with 7 additions and 24 deletions

View File

@@ -1,12 +1,6 @@
import json
from django.shortcuts import get_object_or_404
from django.http import HttpResponse
from django.utils.http import content_disposition_header
from issues.utils import get_hash_for_data
from .models import Event
from bugsink.decorators import event_membership_required
@@ -16,13 +10,3 @@ def event_download(request, event, as_attachment=False):
result["Content-Disposition"] = content_disposition_header(
as_attachment=as_attachment, filename=event.id.hex + ".json")
return result
def debug_get_hash(request, event_pk):
# debug view; not for eternity
obj = get_object_or_404(Event, pk=event_pk)
parsed_data = json.loads(obj.data)
print(get_hash_for_data(parsed_data))