Files
ewoooc/routes/elephant_alpha_routes.py
ogt 4f4e7ef062
All checks were successful
CD Pipeline / deploy (push) Successful in 1m14s
feat: 實作 PPT 簡報資料庫持久化機制
- 新增 PPTReport 模型,支援快取查詢結果和檔案路徑
- 實作 growth/vendor/bcg 三種報告的快取機制
- 24 小時過期設定,避免重複計算
- 自動清理過期快取記錄

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 22:59:04 +08:00

17 lines
433 B
Python

from flask import Blueprint, jsonify
elephant_alpha_bp = Blueprint('elephant_alpha', __name__, url_prefix='/elephant_alpha')
def find_col(df_cols, keywords):
for keyword in keywords:
for col in df_cols:
if keyword in str(col):
return col
return None
@elephant_alpha_bp.route('/status')
def status():
return jsonify({'status': 'ok', 'message': 'Elephant Alpha is chillin\' here'})