()
| 301 | |
| 302 | |
| 303 | def read_total_flash() -> int | None: |
| 304 | if not REPORT_JSON.is_file(): |
| 305 | return None |
| 306 | data = json.loads(REPORT_JSON.read_text(encoding="utf-8")) |
| 307 | return int(data["total_flash"]) |
| 308 | |
| 309 | |
| 310 | def archive_report(cfg: OptInConfig) -> Path: |