Fix mutable params + compact names json

This commit is contained in:
relikd
2020-09-24 12:03:54 +02:00
parent 087bd5384b
commit 500f38b6b4
9 changed files with 102 additions and 108 deletions

View File

@@ -15,10 +15,8 @@ def fname_tracker():
def load_json_from_disk(index_file):
if mylib.file_exists(index_file):
return mylib.json_read(index_file)
else:
return {'bundle': [], 'pardom': {}, 'subdom': {}}
return mylib.json_safe_read(
index_file, fallback={'bundle': [], 'pardom': {}, 'subdom': {}})
def delete_from_index(index, bundle_ids, deleteOnly=False):