Sponsorship auto-generate v0.1.41
This commit is contained in:
2
.github/workflows/update_sponsors_table.yml
vendored
2
.github/workflows/update_sponsors_table.yml
vendored
@@ -2,7 +2,7 @@ name: Update Sponsors Table
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '35 12 * * *' # Set your preferred schedule (UTC)
|
- cron: '47 20 * * *' # Set your preferred schedule (UTC)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-table:
|
update-table:
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ def fetch_sponsors():
|
|||||||
response = requests.post(graphql_url, json={"query": graphql_query}, headers=headers)
|
response = requests.post(graphql_url, json={"query": graphql_query}, headers=headers)
|
||||||
data = response.json()
|
data = response.json()
|
||||||
|
|
||||||
|
|
||||||
|
print(f"Debug GraphQL query result: {data}")
|
||||||
|
|
||||||
if "errors" in data:
|
if "errors" in data:
|
||||||
print(f"GraphQL query failed: {data['errors']}")
|
print(f"GraphQL query failed: {data['errors']}")
|
||||||
return {"sponsors": []}
|
return {"sponsors": []}
|
||||||
|
|||||||
Reference in New Issue
Block a user