From a0ba78cd645b3dd6b12afa12bf5e3f8ee2d393fd Mon Sep 17 00:00:00 2001 From: P0lar1s Date: Wed, 15 Apr 2026 14:04:33 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20check=5Fbuckets.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check_buckets.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 check_buckets.py diff --git a/check_buckets.py b/check_buckets.py deleted file mode 100644 index 5e649c1..0000000 --- a/check_buckets.py +++ /dev/null @@ -1,30 +0,0 @@ -import asyncio -from bucket_manager import BucketManager -from utils import load_config - -async def main(): - config = load_config() - bm = BucketManager(config) - buckets = await bm.list_all(include_archive=True) - - print(f"Total buckets: {len(buckets)}") - - domains = {} - for b in buckets: - for d in b.get("metadata", {}).get("domain", []): - domains[d] = domains.get(d, 0) + 1 - - print(f"Domains: {domains}") - - # Check for formatting issues (e.g., missing critical fields) - issues = 0 - for b in buckets: - meta = b.get("metadata", {}) - if not meta.get("name") or not meta.get("domain") or not b.get("content"): - print(f"Format issue in {b['id']}") - issues += 1 - - print(f"Found {issues} formatting issues.") - -if __name__ == "__main__": - asyncio.run(main())