database/data_access_models.py
def update_registered_unchunked_data(cls, data_type, chunk_path, file_contents):
        """ Updates the data in case a user uploads an unchunkable file more than once,
        and updates the file size just in case it changed. """
        if data_type in CHUNKABLE_FILES:
            raise ChunkableDataTypeError
        chunk = cls.objects.get(chunk_path=chunk_path)
        chunk.file_size = len(file_contents)
        chunk.save()
 Updates the data in case a user uploads an unchunkable file more than once,
        and updates the file size just in case it changed. 
Updates the data in case a user uploads an unchunkable file more than once,
and updates the file size just in case it changed.
Updates the data in case a user uploads an unchunkable file more than once and updates the file size just in case it changed .
def update_registered_unchunked_data(cls, data_type, chunk_path, file_contents):
        if data_type in CHUNKABLE_FILES:
            raise ChunkableDataTypeError
        chunk = cls.objects.get(chunk_path=chunk_path)
        chunk.file_size = len(file_contents)
        chunk.save()
def update_registered_unchunked_data ( cls , data_type , chunk_path , file_contents ) : if data_type in CHUNKABLE_FILES : raise ChunkableDataTypeError chunk = cls . objects . get ( chunk_path = chunk_path ) chunk . file_size = len ( file_contents ) chunk . save ( )
Updates the data in case a user uploads an unchunkable file more than once,
and updates the file size just in case it changed.
Updates the data in case a user uploads an unchunkable file more than once and updates the file size just in case it changed .
""" Updates the data in case a user uploads an unchunkable file more than once,
        and updates the file size just in case it changed. """
cls
data_type
chunk_path
file_contents