From 9c3804b126f36736b0ef00b0eebf72385bd8843c Mon Sep 17 00:00:00 2001 From: Nathan Falvey Date: Fri, 27 Feb 2026 23:13:51 +0000 Subject: [PATCH] Add debug prints to fetch_gitea_data for feed structure and filtering verification --- update_profile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update_profile.py b/update_profile.py index 75a1817..21eb463 100644 --- a/update_profile.py +++ b/update_profile.py @@ -35,10 +35,13 @@ def fetch_gitea_data(): # 2. Activity Feed (Filtered) all_feeds = requests.get(f"{GITEA_URL}/api/v1/users/{USERNAME}/feeds", headers=headers).json() + print(all_feeds) # Debug: Check the structure of feeds # Filter out pushes from the bot human_feeds = [f for f in all_feeds if f['act_user']['login'] != BOT_NAME][:10] + print(human_feeds) # Debug: Check the filtered feeds for human activity # Specific list for "Recent Pushes" recent_pushes = [f for f in all_feeds if f['op_type'] == 'push_repo' and f['act_user']['login'] != BOT_NAME][:5] + print(recent_pushes) # Debug: Check the recent pushes for human activity repo_stats = [] lang_totals = {}