#!/usr/bin/env python3 import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent.parent)) from db_helper import export_topics_to_json topics = export_topics_to_json() print(f"Total topics: {len(topics)}") for t in topics[:5]: print(f"- {t.get('id')}: {t.get('title','')[:40]}")