Correct path of JSON files in which indices are stored.
This commit is contained in:
parent
5fd6a6c710
commit
68db51ea94
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue