Files
Aislo/resources/tester/scratch/show_mech_flaws.py
T

11 lines
344 B
Python

import json, sys
sys.stdout.reconfigure(encoding='utf-8')
with open('scratch/deep_scan_flaws.json', 'r', encoding='utf-8') as f:
flaws = json.load(f)
for item in flaws:
if item['div'] == '04_기계설비부문':
print(f"[{item['file']}] L{item['line']} {item['sec']} -> {item['type']}")
print(f" {item['detail']}")