We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84d6abf commit 90377a0Copy full SHA for 90377a0
scripts/fetch-sponsors.py
@@ -52,6 +52,12 @@
52
}
53
"""
54
55
+def save_sponsors_to_file(sponsors_data, filename="meta/sponsors.json"):
56
+ print(sponsors_data)
57
+ os.makedirs(os.path.dirname(filename), exist_ok=True)
58
+ with open(filename, "w") as f:
59
+ json.dump(sponsors, f, indent=2)
60
+
61
def fetch_sponsors(github_token, login):
62
headers = {
63
"Authorization": f"Bearer {github_token}",
@@ -115,7 +121,7 @@ def main():
115
121
all_sponsors.extend(sponsors)
116
122
117
123
merged_sponsors = merge_sponsors(all_sponsors)
118
- print(json.dumps(merged_sponsors, indent=2))
124
+ save_sponsors_to_file(merged_sponsors)
119
125
120
126
if __name__ == "__main__":
127
main()
0 commit comments