mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
Remove 'debug view' as per comment in the view
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user