diff --git a/app.py b/app.py index 3941c297..6b0957f9 100755 --- a/app.py +++ b/app.py @@ -11128,6 +11128,14 @@ def get_events_by_mainline(): app.logger.info(f'[mainline] 查询到 {len(related_concepts_query)} 条概念关联') + # 调试:输出一些 related_concepts 的样本 + sample_concepts = list(set([c for _, c in related_concepts_query[:100]]))[:20] + app.logger.info(f'[mainline] related_concepts 样本: {sample_concepts}') + + # 调试:输出一些 hierarchy 的样本 + hierarchy_sample = list(concept_hierarchy_map.keys())[:20] + app.logger.info(f'[mainline] hierarchy 概念样本: {hierarchy_sample}') + # ==================== 4. 按 lv2 分组事件 ==================== mainline_groups = {} # { lv2_id: { info: {...}, events: [...] } } ungrouped_events = []