From 45ca52d035ff15e6b5a3e8280d645600bce513a5 Mon Sep 17 00:00:00 2001 From: tazlin Date: Sat, 26 Aug 2023 12:28:02 -0400 Subject: [PATCH] fix: TI now correctly compares to intended sha256 from hordeling --- hordelib/model_manager/ti.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hordelib/model_manager/ti.py b/hordelib/model_manager/ti.py index fa8c7241..7b68ab3b 100644 --- a/hordelib/model_manager/ti.py +++ b/hordelib/model_manager/ti.py @@ -279,9 +279,9 @@ def _download_thread(self, thread_number): ) else: hordeling_json = hordeling_response.json() + if hordeling_json.get("sha256"): + ti["sha256"] = hordeling_json["sha256"] if os.path.exists(filepath) and os.path.exists(hashpath): - if hordeling_json.get("sha256"): - ti["sha256"] = hordeling_json["sha256"] # Check the hash with open(hashpath) as infile: try: