From 30a473e377d9962c64f9272adc8657fa747342ff Mon Sep 17 00:00:00 2001 From: Jeff Newman Date: Thu, 25 Apr 2024 09:25:47 -0500 Subject: [PATCH] repair exercise script --- exercise.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercise.py b/exercise.py index 7e338dc..d0a3c04 100644 --- a/exercise.py +++ b/exercise.py @@ -27,7 +27,7 @@ def _exercise_path(dirname) -> Path: # If the full scale data is already available, the whole data download process # can be commented out and skipped. -full_data_dir = _exercise_path("data-full-bonus") +full_data_dir = _exercise_path("data-full") archive_sha256 = { 11: "5b0c7ad009115830fbedaee9dd33981b3bab23b3b7177a7a0a8f3c871decf989", @@ -97,7 +97,7 @@ def _exercise_path(dirname) -> Path: for filename, sha256 in full_data_sha256.items(): if not full_data_dir.joinpath(filename).exists(): raise ValueError(f"data missing: {filename}") - if sha256 != sha256_checksum(filename): + if sha256 != sha256_checksum(full_data_dir.joinpath(filename)): raise ValueError(f"data error: {filename}") else: print("full data ready")