Correct path of JSON files in which indices are stored.

This commit is contained in:
Schimon Jehudah, Adv. 2024-11-20 17:42:56 +02:00
parent 5fd6a6c710
commit 68db51ea94
2 changed files with 4 additions and 4 deletions

View file

@ -32,7 +32,7 @@ class JsonIndex:
directory = os.path.join(directory_cache_json, pubsub)
if not os.path.exists(directory):
os.mkdir(directory)
filename = os.path.join(directory_cache_json, pubsub, node)
filename = os.path.join(directory_cache_json, pubsub, f'{node}.json')
with open(filename, 'w', encoding='utf-8') as f:
json.dump(json_data, f, ensure_ascii=False, indent=4)