Sponsorship auto-generate v0.1.36

This commit is contained in:
Jokob-sk
2024-01-28 21:30:57 +11:00
parent 64418d11fc
commit 194d996f22
2 changed files with 5 additions and 1 deletions

View File

@@ -3,6 +3,9 @@ import requests
import base64
def fetch_sponsors():
global headers
graphql_url = "https://api.github.com/graphql"
headers = {
"Authorization": f"Bearer {os.environ.get('GH_TOKEN')}",
@@ -89,6 +92,7 @@ def generate_sponsors_table(current_sponsors, past_sponsors):
def update_readme(sponsors_table):
global headers
repo_owner = "jokob-sk"
repo_name = "Pi.Alert"
readme_path = "README.md"