Initial commit: yu-zhi-ran platform with automation integration
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python3
|
||||
import json
|
||||
from collections import Counter
|
||||
|
||||
with open('automation/data/sustainability_topics.json', 'r', encoding='utf-8') as f:
|
||||
data = json.load(f)
|
||||
|
||||
print('=== 选题库状态 ===')
|
||||
print(f'总选题数: {len(data)}')
|
||||
print(f'字段: {list(data[0].keys())}')
|
||||
|
||||
print('\n状态分布:')
|
||||
status_counts = Counter(t.get('status', '<无>') for t in data)
|
||||
for s, c in sorted(status_counts.items()):
|
||||
print(f' {s}: {c} 个')
|
||||
|
||||
print('\n各状态详情:')
|
||||
for t in data:
|
||||
print(f"{t['id']}: {t['title'][:40]:40} | 状态: {t.get('status', '?'):6} | 优先级: {t.get('priority_score', '-')}")
|
||||
Reference in New Issue
Block a user