Commit 8612bd76 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

events: remove unused _saveUploadedFile function

parent 4b1a9923
......@@ -11,7 +11,6 @@ from .models import LalInferenceBurstEvent
from .models import EMBBEventLog, EMGroup
from .models import EMObservation, EMFootprint
from .translator import handle_uploaded_data
from .view_utils import _saveUploadedFile
from .view_utils import eventToDict, eventLogToDict, emObservationToDict, \
from .permission_utils import assign_default_event_perms
......@@ -9,7 +9,6 @@ from django.utils.safestring import mark_safe
from .models import SingleInspiral, Event, Search, Group
from core.urls import build_absolute_uri
from core.vfile import VersionedFile
from .permission_utils import is_external
from api.utils import api_reverse
from django.db.models import Q
......@@ -694,14 +693,6 @@ def assembleLigoLw(objects):
return xmldoc
def _saveUploadedFile(event, uploadedFile):
fname = os.path.join(event.datadir,
f = VersionedFile(fname, "w")
for chunk in uploadedFile.chunks():
return f.version
import html5lib
def sanitize_html(data):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment