From 150a213ae2050549e3d6c31e46062f3dffc2c697 Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 20 Dec 2024 22:39:53 +0000 Subject: [PATCH] fixed bug when putting data --- shared/datastore/src/put.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/datastore/src/put.py b/shared/datastore/src/put.py index 3e6c99e..372a1d7 100644 --- a/shared/datastore/src/put.py +++ b/shared/datastore/src/put.py @@ -20,7 +20,7 @@ def put( assert isinstance(object_name, str) assert len(object_name) > 0 # prepare for saving - num_bytes = buffer.tell() + num_bytes = len(buffer.getvalue()) buffer.seek(0) # send data to bucket try: