mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
Don't include empty hash stores
This commit is contained in:
+3
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user