From 5c30c993b5f14b421b26f89c40e933d960ebf230 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Tue, 14 Apr 2026 00:11:05 -0700 Subject: [PATCH] Don't include empty hash stores --- modules/hashes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/hashes.py b/modules/hashes.py index 57afb703e..ac3e01c45 100644 --- a/modules/hashes.py +++ b/modules/hashes.py @@ -35,7 +35,9 @@ def load_cache(): def save_cache(): - writefile(dict(_data), cache_filename) + # Don't include empty hash stores + filtered = filter(lambda item: len(item[1]) > 0, _data.items()) + writefile(dict(filtered), cache_filename) def cache(store: str = "hashes") -> HashStore: