Update the pieces to use base64 encoded binary
This commit is contained in:
parent
5c6e033d21
commit
ce8fcbeaae
4 changed files with 32 additions and 30 deletions
|
@ -294,8 +294,8 @@ def _finish_upload(namespace, repo_name, upload_obj, expected_digest):
|
|||
upload_obj.uncompressed_byte_count)
|
||||
|
||||
if upload_obj.piece_sha_state is not None:
|
||||
piece_string = upload_obj.piece_hashes + upload_obj.piece_sha_state.hexdigest()
|
||||
model.storage.save_torrent_info(blob_storage, app.config['TORRENT_PIECE_SIZE'], piece_string)
|
||||
piece_bytes = upload_obj.piece_hashes + upload_obj.piece_sha_state.digest()
|
||||
model.storage.save_torrent_info(blob_storage, app.config['TORRENT_PIECE_SIZE'], piece_bytes)
|
||||
|
||||
# Delete the upload tracking row.
|
||||
upload_obj.delete_instance()
|
||||
|
|
Reference in a new issue