#!/usr/bin/env python3 import sys from pathlib import Path PROJECT_ROOT = Path(__file__).parent.parent sys.path.insert(0, str(PROJECT_ROOT)) from db_helper import update_topic_status for tid in ['B05', 'D01']: update_topic_status(tid, 'pending') print('已重置 B05, D01 为待处理')