29 lines
925 B
Python
29 lines
925 B
Python
import json
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
sys.stdout.reconfigure(encoding='utf-8')
|
|
|
|
# Check const_work_item_master
|
|
const_path = Path('resources/data_work_item_master/const_work_item_master_2026-01-01.json')
|
|
with open(const_path, 'r', encoding='utf-8') as f:
|
|
const_master = json.load(f)
|
|
|
|
print("const_work_item_master keys:", list(const_master.keys()))
|
|
const_items = const_master.get('work_items', [])
|
|
print(f"const work_items count: {len(const_items)}")
|
|
|
|
# Count tables with notes
|
|
tables_with_notes = 0
|
|
total_const_tables = 0
|
|
for wi in const_items:
|
|
for t in wi.get('tables', []):
|
|
total_const_tables += 1
|
|
if t.get('notes'):
|
|
tables_with_notes += 1
|
|
|
|
print(f"Total const tables: {total_const_tables}, with notes: {tables_with_notes}")
|
|
|
|
# Inspect git diff on const_work_item_master for notes removal
|
|
# Run a git command to see what lines were removed in commit 32c4c5cf for const master
|