리뉴얼
This commit is contained in:
32
분석도구/v2/archive/check_skill_structure.py
Normal file
32
분석도구/v2/archive/check_skill_structure.py
Normal file
@ -0,0 +1,32 @@
|
||||
"""DT_Skill 구조 확인"""
|
||||
import json
|
||||
|
||||
with open('../../원본데이터/DataTable.json', 'r', encoding='utf-8') as f:
|
||||
data = json.load(f)
|
||||
|
||||
dt_skill = None
|
||||
for asset in data.get('Assets', []):
|
||||
if asset.get('AssetName') == 'DT_Skill':
|
||||
dt_skill = asset
|
||||
break
|
||||
|
||||
if not dt_skill:
|
||||
print("DT_Skill을 찾을 수 없습니다.")
|
||||
exit(1)
|
||||
|
||||
print("=== DT_Skill 구조 확인 ===\n")
|
||||
|
||||
# SK190201 찾기
|
||||
rows = dt_skill.get('Rows', [])
|
||||
for row in rows:
|
||||
row_name = row.get('RowName', '')
|
||||
if row_name == 'SK190201':
|
||||
row_data = row.get('Data', {})
|
||||
print(f"SK190201 데이터 키:")
|
||||
for key in sorted(row_data.keys()):
|
||||
value = row_data[key]
|
||||
if isinstance(value, str) and len(value) > 100:
|
||||
print(f" - {key}: (긴 문자열, {len(value)}자)")
|
||||
else:
|
||||
print(f" - {key}: {value}")
|
||||
break
|
||||
Reference in New Issue
Block a user