数据可视化上线

This commit is contained in:
2025-11-15 09:26:39 +08:00
parent ee46e4cebb
commit 31c0371da3
5 changed files with 97 additions and 5 deletions

View File

@@ -17,10 +17,9 @@ class ElasticConfig(AppConfig):
return
# 延迟导入,避免循环导入或过早加载
from .es_connect import create_index_with_mapping, get_type_list
from .es_connect import create_index_with_mapping, start_daily_analytics_scheduler
try:
create_index_with_mapping()
types = get_type_list()
print(f"🔎 启动时 type_list: {types}")
start_daily_analytics_scheduler()
except Exception as e:
print(f"❌ ES 初始化失败: {e}")