From b35e9fa573310a7730798713dfa4b91d3f7e572e Mon Sep 17 00:00:00 2001 From: Nubenetes Bot Date: Fri, 15 May 2026 20:29:05 +0200 Subject: [PATCH] fix(cleaning): fix IndentationError caused by a placeholder in previous edit --- src/intelligent_health_checker.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/intelligent_health_checker.py b/src/intelligent_health_checker.py index 87ba8f18..3a1fbe8c 100644 --- a/src/intelligent_health_checker.py +++ b/src/intelligent_health_checker.py @@ -95,7 +95,13 @@ class IntelligentLinkCleaner: return url, False, None, f"Abandoned Repo (Inactive {gh_meta['years_inactive']:.1f}y, {gh_meta['stars']}⭐)" cache_entry = self.learning_data.get("link_cache", {}).get(url) -... + if cache_entry and cache_entry.get("status") == "ALIVE": + if now - cache_entry.get("last_checked", 0) < (21 * 24 * 3600): + self.detailed_stats["skipped_recent"] += 1 + return url, True, None, "Cached (Recent)" + + domain = url.split("//")[-1].split("/")[0] + domain_info = self.learning_data.get("domains", {}).get(domain, {}) strategies = [ {"type": "http", "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36", "ref": "https://www.google.com/", "desc": "Desktop/Google"}, {"type": "http", "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1", "ref": "https://t.co/", "desc": "Mobile/Twitter"},