From f05c90063ce37181ebeb40a226e551152e75f57e Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Mon, 29 Jan 2024 07:44:32 +1100 Subject: [PATCH] Sponsorship auto-generate v0.1.41 --- .github/workflows/update_sponsors_table.yml | 2 +- update_sponsors.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_sponsors_table.yml b/.github/workflows/update_sponsors_table.yml index 1b87a1d5..2f3cf8a8 100755 --- a/.github/workflows/update_sponsors_table.yml +++ b/.github/workflows/update_sponsors_table.yml @@ -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: diff --git a/update_sponsors.py b/update_sponsors.py index 40f7c796..e66db98a 100755 --- a/update_sponsors.py +++ b/update_sponsors.py @@ -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": []}