Skip to content

Commit f241c8a

Browse files
authored
Merge pull request #1021 from appwrite/fix-python-chunked-upload
fix: python chunked upload
2 parents 830198d + b113887 commit f241c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/python/package/client.py.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class Client:
166166
if offset + self._chunk_size < size:
167167
end = offset + self._chunk_size
168168
else:
169-
end = size - offset
169+
end = size
170170
input_file.data = input[offset:end]
171171

172172
params[param_name] = input_file

0 commit comments

Comments
 (0)