Skip to content

Commit 4c68ade

Browse files
Kevin KroneKevin Krone
Kevin Krone
authored and
Kevin Krone
committed
Fixed forgotten path in scripts
1 parent 50b89be commit 4c68ade

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

scripts/get-info.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,6 @@
9090
"contributors": contributor_info
9191
}
9292

93-
with open('../data/repo_info.json', 'w') as f:
93+
data_path = os.path.join(dir_path, 'repo_info.json')
94+
with open(data_path, 'w') as f:
9495
json.dump(results, f)

scripts/get-issues.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@
4747
sorted_issue_data = sorted(issue_data, key=lambda x: x['days_ago'])
4848

4949
# Save to JSON file
50-
with open('../data/issue_data.json', 'w') as f:
50+
data_path = os.path.join(dir_path, 'issue_data.json')
51+
with open(data_path, 'w') as f:
5152
json.dump(sorted_issue_data, f)

scripts/get-trophies.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@
5454
sorted_trophy_data = sorted(trophy_data, key=lambda x: x['days_ago'])
5555

5656
# Save sorted data to JSON file
57-
with open('../data/trophy_data.json', 'w') as f:
57+
data_path = os.path.join(dir_path, 'trophy_data.json')
58+
with open(data_path, 'w') as f:
5859
json.dump(sorted_trophy_data, f)

0 commit comments

Comments
 (0)