json extension

main
Bob Mottram 2024-11-18 13:00:51 +00:00
parent 5504c5b33e
commit 4f5bda9a70
1 changed files with 2 additions and 2 deletions

View File

@ -877,7 +877,7 @@ def log_epicyon_instances(base_dir: str, calling_domain: str,
known_epicyon_instances.append(calling_domain)
known_epicyon_instances.sort()
epicyon_instances_filename = \
data_dir(base_dir) + '/known_epicyon_instances.txt'
data_dir(base_dir) + '/known_epicyon_instances.json'
print('DEBUG: log_epicyon_instances: ' +
epicyon_instances_filename + ' ' + str(known_epicyon_instances))
save_json(known_epicyon_instances, epicyon_instances_filename)
@ -887,7 +887,7 @@ def load_known_epicyon_instances(base_dir: str) -> []:
"""Loads a list of known epicyon instances
"""
epicyon_instances_filename = \
data_dir(base_dir) + '/known_epicyon_instances.txt'
data_dir(base_dir) + '/known_epicyon_instances.json'
if not os.path.isfile(epicyon_instances_filename):
return []
known_epicyon_instances = load_json(epicyon_instances_filename)