From 60fbcb27d4c9f9985b4f30a2b676a55d3d9eaca3 Mon Sep 17 00:00:00 2001 From: Mateusz Masiarz Date: Tue, 26 Sep 2023 21:54:00 +0200 Subject: [PATCH] Prevent errors in the future --- src/sinol_make/helpers/cache.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sinol_make/helpers/cache.py b/src/sinol_make/helpers/cache.py index c86d6752..24128b7f 100644 --- a/src/sinol_make/helpers/cache.py +++ b/src/sinol_make/helpers/cache.py @@ -61,10 +61,9 @@ def save_compiled(file_path: str, exe_path: str, is_checker: bool = False): :param exe_path: Path to the compiled executable :param is_checker: Whether the compiled file is a checker. If True, all cached tests are removed. """ - info = get_cache_file(file_path) + info = CacheFile() info.executable_path = exe_path info.md5sum = util.get_file_md5(file_path) - info.tests = {} info.save(file_path) if is_checker: