Fix hash enricher for flatfile output (closes #71)

This commit is contained in:
R. Miles McCain
2023-03-14 13:37:54 -07:00
committed by GitHub
parent 0654e8c5c6
commit 6be7536fad

View File

@@ -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]