Fix calendar filter, module triggers, API cleanup, consolidate get_current_admin, fix LLM schema

This commit is contained in:
Yuzhiran Dev
2026-05-20 14:15:00 +08:00
parent 498165440f
commit 0a8fbda4fd
23 changed files with 118 additions and 155 deletions
+7
View File
@@ -4,10 +4,17 @@
"""
import sys
import os
from pathlib import Path
from datetime import datetime, date
from typing import Optional, Dict, List
# 加载 .env(在 scripts/ 目录下运行时需要)
_env_path = Path(__file__).parent.parent / 'platform' / 'backend' / '.env'
if _env_path.exists():
from dotenv import load_dotenv
load_dotenv(_env_path)
# 添加项目根和 backend 路径
PROJECT_ROOT = Path(__file__).parent.parent
sys.path.insert(0, str(PROJECT_ROOT))