File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4
4
import json
5
5
6
6
# Read the data.json file
7
- with open ("../ sherlock/resources/data.json" , "r" , encoding = "utf-8" ) as data_file :
7
+ with open ("sherlock/resources/data.json" , "r" , encoding = "utf-8" ) as data_file :
8
8
data : dict = json .load (data_file )
9
9
10
10
# Removes schema-specific keywords for proper processing
23
23
site_file .write (f"1.  [{ social_network } ]({ url_main } ) { is_nsfw } \n " )
24
24
25
25
# Overwrite the data.json file with sorted data
26
- with open ("../ sherlock/resources/data.json" , "w" ) as data_file :
26
+ with open ("sherlock/resources/data.json" , "w" ) as data_file :
27
27
sorted_data = json .dumps (data , indent = 2 , sort_keys = True )
28
28
data_file .write (sorted_data )
29
29
data_file .write ("\n " )
You can’t perform that action at this time.
0 commit comments