feat: DITAnalyzer module - Feature 6.2 & 6.3 implementation

- DITAnalyzer class with data preprocessing
- Feature 6.2: High value resource allocation analysis
- Feature 6.3: Stagnant deal alerts
- Flask API routes for CSV upload and analysis
- Test suite with sample data
This commit is contained in:
2025-12-12 13:12:31 +08:00
parent 177e8e8fe9
commit 44cd2f8e76
6 changed files with 637 additions and 7 deletions

10
app.py
View File

@@ -15,13 +15,9 @@ def create_app(config_class=Config):
# 初始化擴展
db.init_app(app)
# 註冊 Blueprint (後續擴展)
# from routes.auth import auth_bp
# from routes.admin import admin_bp
# from routes.api import api_bp
# app.register_blueprint(auth_bp)
# app.register_blueprint(admin_bp)
# app.register_blueprint(api_bp)
# 註冊 Blueprint
from routes.api import api_bp
app.register_blueprint(api_bp)
# 健康檢查端點
@app.route('/health')