From 1d56b0c9d45b516f681abdedad8d2a6bb7ba7af3 Mon Sep 17 00:00:00 2001 From: Lovi <62809003+Lovi-0@users.noreply.github.com> Date: Fri, 7 Feb 2025 20:32:20 +0100 Subject: [PATCH] Fix redirect update --- .github/workflows/update-loc.yml | 2 -- update.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/update-loc.yml b/.github/workflows/update-loc.yml index aad590e..ea325fe 100644 --- a/.github/workflows/update-loc.yml +++ b/.github/workflows/update-loc.yml @@ -1,8 +1,6 @@ name: Update Lines of Code on: - schedule: - - cron: '0 0 * * 0' workflow_dispatch: jobs: diff --git a/update.py b/update.py index 1cb533a..820a84c 100644 --- a/update.py +++ b/update.py @@ -126,7 +126,7 @@ def download_and_extract_latest_commit(): 'Accept': 'application/vnd.github.v3+json', 'User-Agent': f'{__title__}-updater' } - response = httpx.get(api_url, headers=headers, timeout=max_timeout) + response = httpx.get(api_url, headers=headers, timeout=max_timeout, follow_redirects=True) if response.status_code == 200: commit_info = response.json()[0]