Skip to content

Commit

Permalink
fix incorrect path, closes #2140
Browse files Browse the repository at this point in the history
  • Loading branch information
sdushantha committed May 31, 2024
1 parent 945a364 commit e5ad3c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devel/site-list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,7 +23,7 @@
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")
Expand Down

0 comments on commit e5ad3c4

Please sign in to comment.