Skip to content

Commit f95a588

Browse files
committed
fix: [investigation] download, remove item .gz extension
1 parent 4b53e41 commit f95a588

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/lib/objects/ail_objects.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ def download_objects(objects):
227227
with zipfile.ZipFile(zip_buffer, "a") as zf:
228228
for obj in get_objects(objects):
229229
filename = obj.get_global_id()
230+
if obj.type == 'item':
231+
if filename.endswith('.gz'):
232+
filename = filename[-3]
230233
content = obj.get_content(r_type='bytes')
231234
if content:
232235
zf.writestr(filename, BytesIO(content).getvalue())

0 commit comments

Comments
 (0)