Skip to content

Commit

Permalink
Prevent errors in the future
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane committed Sep 26, 2023
1 parent fd848d4 commit 60fbcb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sinol_make/helpers/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 60fbcb2

Please sign in to comment.