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:
|
||||
schedule:
|
||||
- cron: '35 12 * * *' # Set your preferred schedule (UTC)
|
||||
- cron: '47 20 * * *' # Set your preferred schedule (UTC)
|
||||
|
||||
jobs:
|
||||
update-table:
|
||||
|
||||
@@ -49,6 +49,9 @@ def fetch_sponsors():
|
||||
response = requests.post(graphql_url, json={"query": graphql_query}, headers=headers)
|
||||
data = response.json()
|
||||
|
||||
|
||||
print(f"Debug GraphQL query result: {data}")
|
||||
|
||||
if "errors" in data:
|
||||
print(f"GraphQL query failed: {data['errors']}")
|
||||
return {"sponsors": []}
|
||||
|
||||
Reference in New Issue
Block a user