#!/usr/bin/env python3
"""Tampilkan jadwal uky & tslaw pada 13 Okt 2026 (WIB) lengkap dengan deskripsi."""
import json
from datetime import datetime, timedelta, timezone

WIB = timezone(timedelta(hours=7))
docs = json.load(open("/tmp/scheds_1013.json"))
ACC = {"6a334e89c5ff4ce3a3225a48": "uky", "6a35f8b7c5ff4ce3a322b2ed": "tslaw"}
for d in sorted(docs, key=lambda x: str(x.get("scheduleAt"))):
    a = ACC.get(d.get("accountId"))
    if not a:
        continue
    try:
        dt = datetime.fromisoformat(str(d["scheduleAt"]).replace("Z", "+00:00")).astimezone(WIB)
    except Exception:
        continue
    if dt.strftime("%Y-%m-%d") != "2026-10-13":
        continue
    print("=" * 90)
    print(dt.strftime("%H:%M"), a, d.get("status"), d.get("type"), "id=", d.get("_id"), "title=", repr(d.get("title")))
    print((d.get("description") or "")[:800])
