Discard QR/payment task cache that should not survive service restarts.
(self)
| 352 | account = self.get_account(account_id) |
| 353 | account.account_status = status.strip() or "unchecked" |
| 354 | account.account_status_message = message.strip() |
| 355 | account.account_checked_at = utc_now_iso() |
| 356 | return self.update_account(account) |
| 357 | |
| 358 | def _session_path(self, account_id: str): |
| 359 | return self.settings.sessions_dir / f"{account_id}.json" |
| 360 | |
| 361 | def _remove_account_artifacts(self, account_id: str) -> None: |
| 362 | for root in (self.settings.data_dir / "logs", self.settings.data_dir / "test_runs"): |
| 363 | if not root.exists(): |
| 364 | continue |
| 365 | for path in list(root.iterdir()): |
| 366 | try: |
no test coverage detected