fix: export compress HAR

pull/746/head
Raphaël Vinot 2023-07-26 11:28:32 +02:00
parent 4a3c535ee7
commit ebd2b29993
1 changed files with 2 additions and 1 deletions

View File

@ -822,7 +822,8 @@ class Lookyloo():
all_paths.append(capture_dir / 'uuid') all_paths.append(capture_dir / 'uuid')
with ZipFile(to_return, 'w') as myzip: with ZipFile(to_return, 'w') as myzip:
for path in all_paths: for path in all_paths:
if path.suffix in ['.pickle', '.gz']: if 'pickle' in path.name:
# We do not want to export the pickle
continue continue
myzip.write(path, arcname=f'{capture_dir.name}/{path.name}') myzip.write(path, arcname=f'{capture_dir.name}/{path.name}')
to_return.seek(0) to_return.seek(0)