Skip to content

Commit

Permalink
fix file size (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjor authored Dec 17, 2024
1 parent e781499 commit 79a201d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dataprep-tools/filecoin/boost_create_deals.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def create_deals(metadata_obj):
commp_piece_cid = line[1]
payload_cid = line[2]
padded_size = line[3]
file_size = line[4]

check_obj = client.check_exists(epoch + "/" + file_name)
if not check_obj[0]:
Expand Down Expand Up @@ -234,7 +235,7 @@ def create_deals(metadata_obj):
"file_name": file_name,
"url": public_url,
"commp_piece_cid": commp_piece_cid,
"file_size": check_obj[1],
"file_size": file_size,
"padded_size": padded_size,
"payload_cid": payload_cid,
}
Expand Down

0 comments on commit 79a201d

Please sign in to comment.