INNER CODE UNIT · Python

_history_entry

lij768423-svg/grok-register-panel · batch_traffic.py:90

def _history_entry(raw: object) -> dict | None:
    if not isinstance(raw, dict):
        return None
    batch_id = str(raw.get("batch_id") or "")[:96]
    if not batch_id:
        return None
    entry = {
        "batch_id": batch_id,
        "started_at": raw.get("started_at"),
        "finished_at": raw.get("finished_at"),
        "bytes_up": 0,
        "bytes_down": 0,
        "bytes_total": 0,
        "successful_accounts": 0,
        "target": 0,
        "workers": 0,
        "exit_code": raw.get("exit_code"),
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…