Files
dj/integration-work/historical_cleanup_probe_status.py
2026-11-13 11:46:25 +08:00

5 lines
435 B
Python

import pathlib,json
out=pathlib.Path('/home/ps/huobao-video-cleanup/historical-20261112')
p=out/'probe-results.json';r=json.loads(p.read_text()) if p.exists() else []
print(json.dumps({'processed':len(r),'verified':sum(x['verified'] for x in r),'done':(out/'probe-done.json').exists(),'failed':(out/'probe-failed.txt').exists(),'latest':[{k:v for k,v in x.items() if k in ('task','verified','reason','diagnostic')} for x in r[-5:]]}))