From c4f924c77771a90b256083df972c4bbdd894db6e Mon Sep 17 00:00:00 2001 From: Lucas <169063936+mustbeperfect@users.noreply.github.com> Date: Tue, 8 Apr 2025 08:29:29 -0700 Subject: [PATCH] Added homepage updating to stats updator script --- source/scripts/maintenance/stats_updator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/scripts/maintenance/stats_updator.py b/source/scripts/maintenance/stats_updator.py index 605ffcd..436c8fc 100644 --- a/source/scripts/maintenance/stats_updator.py +++ b/source/scripts/maintenance/stats_updator.py @@ -32,6 +32,7 @@ def update_application_data(app): app['stars'] = repo_data.get('stargazers_count', app['stars']) app['language'] = repo_data.get('language', app['language']) + app['homepage_url'] = repo_data.get('homepage', app['homepage_url']) if 'custom-description' not in app.get('flags', []): app['description'] = repo_data.get('description', app.get('description')) @@ -46,8 +47,8 @@ def update_application_data(app): return app else: - print(f"Error: Unable to fetch data for {repo_name}. Status Code: {response.status_code}") # Print status code - print(f"Response: {response.text}") # Print response content for more insight + print(f"Error: Unable to fetch data for {repo_name}. Status Code: {response.status_code}") + print(f"Response: {response.text}") return app for app in data['applications']: