fix incorrect path, closes #2140

This commit is contained in:
Siddharth Dushantha 2024-05-31 10:50:42 +02:00
parent 945a364970
commit e5ad3c471b
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
import json
# Read the data.json file
with open("../sherlock/resources/data.json", "r", encoding="utf-8") as data_file:
with open("sherlock/resources/data.json", "r", encoding="utf-8") as data_file:
data: dict = json.load(data_file)
# Removes schema-specific keywords for proper processing
@ -23,7 +23,7 @@ with open("../sites.md", "w") as site_file:
site_file.write(f"1. ![](https://www.google.com/s2/favicons?domain={url_main}) [{social_network}]({url_main}) {is_nsfw}\n")
# Overwrite the data.json file with sorted data
with open("../sherlock/resources/data.json", "w") as data_file:
with open("sherlock/resources/data.json", "w") as data_file:
sorted_data = json.dumps(data, indent=2, sort_keys=True)
data_file.write(sorted_data)
data_file.write("\n")