From 7d307e13fa0e3d5c85e2c3d9a5ae052305707d3a Mon Sep 17 00:00:00 2001 From: Jacopo Taurino Date: Sun, 1 Sep 2024 09:45:24 +0200 Subject: [PATCH] reactivated the old hashing that work for civitai --- modules/hashes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/hashes.py b/modules/hashes.py index d5ecc7716..d89e34f56 100644 --- a/modules/hashes.py +++ b/modules/hashes.py @@ -20,7 +20,8 @@ def calculate_sha256_real(filename): def calculate_sha256(filename): - return forge_fake_calculate_sha256(filename) + print("calculating real hash") + return calculate_sha256_real(filename) def forge_fake_calculate_sha256(filename): @@ -60,7 +61,7 @@ def sha256(filename, title, use_addnet_hash=False): return None print(f"Calculating sha256 for {filename}: ", end='') - sha256_value = forge_fake_calculate_sha256(filename) + sha256_value = calculate_sha256_real(filename) print(f"{sha256_value}") hashes[title] = {