Merge pull request #72 from milesmcc/patch-1

Fix hash enricher for flatfile output (closes #71)
pull/74/head
Miguel Sozinho Ramalho 2023-03-16 15:04:55 +00:00 zatwierdzone przez GitHub
commit 2bbf534d67
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -75,7 +75,7 @@ class Storage(Step):
# filename_generator logic
if self.filename_generator == "random": filename = str(uuid.uuid4())[:16]
elif self.filename_generator == "static":
he = HashEnricher({"algorithm": "SHA-256", "chunksize": 1.6e7})
he = HashEnricher({"hash_enricher": {"algorithm": "SHA-256", "chunksize": 1.6e7}})
hd = he.calculate_hash(media.filename)
filename = hd[:24]