Skip to content

Commit

Permalink
fix json file path
Browse files Browse the repository at this point in the history
update json file name in other python file
  • Loading branch information
eseiver committed Jan 4, 2022
1 parent 06337f5 commit 6896010
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def write_infobox_json(self, categories=None, df=None):
df = next(iter(self.dfs.values()))
df = df.set_index('page_title', drop=True)
json_data = df.to_json(indent=4, orient='index')
with open("projects/fandom.json", 'w') as f:
with open(JSON_FILE, 'w') as f:
f.write(json_data)

def sort_infoboxes_by_template(self, infoboxes=None, alert_empty=None):
Expand Down
3 changes: 2 additions & 1 deletion projects/spouse_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
import urllib.request
import json
import re
from main import JSON_FILE


if __name__ == "__main__":

csv = ""

with open('coronationstreet.json') as data_file:
with open(JSON_FILE) as data_file:
data = json.load(data_file)
for v in data.items():
try:
Expand Down

0 comments on commit 6896010

Please sign in to comment.