Skip to content

Commit 60d0e5e

Browse files
committed
2 parents d468ead + 4ece78e commit 60d0e5e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/public/api/sponsors.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[
22
{
3-
"login": "roeldebruijn1978",
4-
"avatarUrl": "https://avatars.githubusercontent.com/u/36719258?v=4",
5-
"url": "https://github.com/roeldebruijn1978",
6-
"amount": 300
3+
"login": "denson9874",
4+
"avatarUrl": "https://avatars.githubusercontent.com/u/9751141?v=4",
5+
"url": "https://github.com/denson9874",
6+
"amount": 2000
77
}
88
]

scripts/fetch-sponsors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
GRAPHQL_QUERY = """
88
query {
9-
user(login: "DerGoogler") {
9+
organization(login: "MMRLApp") {
1010
sponsorshipsAsMaintainer(activeOnly: false, first: 100) {
1111
nodes {
1212
sponsorEntity {
@@ -51,7 +51,7 @@ def save_sponsors_to_file(sponsors_data, filename="docs/public/api/sponsors.json
5151
"url": node["sponsorEntity"]["url"],
5252
"amount": node["tier"]["monthlyPriceInCents"]
5353
}
54-
for node in sponsors_data["data"]["user"]["sponsorshipsAsMaintainer"]["nodes"]
54+
for node in sponsors_data["data"]["organization"]["sponsorshipsAsMaintainer"]["nodes"]
5555
]
5656

5757
os.makedirs(os.path.dirname(filename), exist_ok=True)

0 commit comments

Comments
 (0)