From 872927bf26089dc6919e0667e96b5fa162522134 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 15 Jan 2025 12:26:38 +0100 Subject: [PATCH] update --- README.md | 2 +- tools/gen-stats.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 80e26fa..ac81a47 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ This repository aims to provide macOS ISOs for security researchers, developers, | Server1 | Yes | 34.39 TB | | Server2 | No | 0.00 B | | **Combined** | - | 34.39 TB | - + ## FAQ ❓ diff --git a/tools/gen-stats.py b/tools/gen-stats.py index d11ad7c..ed8f824 100644 --- a/tools/gen-stats.py +++ b/tools/gen-stats.py @@ -31,7 +31,7 @@ def get_uploaded(qb_url, auth_type): total_uploaded = sum(torrent["uploaded"] for torrent in response.json() if any(keyword.lower() in torrent["name"].lower() for keyword in ["macOS", "OS X"])) except Exception as e: active = False - print(f"Error accessing {qb_url['url']}: {e}") + print(f"Error accessing {qb_url['url']}: {e} | Code: {response.status_code}") return active, total_uploaded @@ -55,7 +55,7 @@ def update_readme(stats): | Server1 | {stats['server1']['active']} | {stats['server1']['total_upload']} | | Server2 | {stats['server2']['active']} | {stats['server2']['total_upload']} | | **Combined** | - | {stats['combined_total_upload']} | - """ +""" new_readme_content = readme_content.split(start_marker)[0] + start_marker + stats_table + end_marker + readme_content.split(end_marker)[1]