This commit is contained in:
Cayo Puigdefabregas 2020-12-18 20:11:50 +01:00
parent db92c390d9
commit db19f90009

View file

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