This commit is contained in:
Cayo Puigdefabregas 2020-12-18 20:11:50 +01:00
parent db92c390d9
commit db19f90009
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class ReportHash(db.Model):
hash3.comment = """The normalized name of the hash."""
def insert_hash(bfile=b'hello'):
def insert_hash(bfile):
hash3 = hashlib.sha3_256(bfile).hexdigest()
db_hash = ReportHash(hash3=hash3)
db.session.add(db_hash)