Update compression_level of sent tarfiles to 5 instead of 9
This commit is contained in:
parent
348ab7a1e2
commit
0bd3e273b7
|
@ -139,7 +139,7 @@ class ApiCaller:
|
|||
def _send_files(self, path, url):
|
||||
ret = True
|
||||
with BytesIO() as tgz:
|
||||
with taropen(mode="w:gz", fileobj=tgz, dereference=True) as tf:
|
||||
with taropen(mode="w:gz", fileobj=tgz, dereference=True, compresslevel=5) as tf:
|
||||
tf.add(path, arcname=".")
|
||||
tgz.seek(0, 0)
|
||||
files = {"archive.tar.gz": tgz}
|
||||
|
|
Loading…
Reference in New Issue