mirror of https://github.com/CIRCL/lookyloo
chg: do not export pickle
parent
c777d7a8f9
commit
97a668aa91
|
@ -777,7 +777,7 @@ 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.name.endswith('pickle'):
|
if path.suffix in ['.pickle', '.gz']:
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue