import json
from collections import Counter
docs = json.load(open('/tmp/repliz_all_20261011.json'))
print("total", len(docs))
byid = {d.get('_id'): d for d in docs}
ids = ['6acaa864b2fa085f08e23ea6', '6acaa8646b54495a6a4708eb',
       '6acaa865b2fa085f08e23ed2', '6acaa865b2fa085f08e23ee3']
for i in ids:
    d = byid.get(i)
    print(i, bool(d), (d or {}).get('status'), (d or {}).get('scheduleAt'))
print(Counter(d.get('status') for d in docs))
sa = [(d.get('scheduleAt') or '') for d in docs]
print("min", min(sa), "max", max(sa))
# apakah link AI konten ada di dump?
hits = [d.get('_id') for d in docs if 'ai-untuk-konten-marketing' in json.dumps(d)]
print("hits ai-untuk-konten-marketing:", hits)
