#!/usr/bin/env python3 import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).parent.parent)) from db_helper import get_topic_by_id t = get_topic_by_id('D01') if t: print(f"D01 title: {t['title']} (length: {len(t['title'])})") print("Field:", t.get('field'))