All checks were successful
CD Pipeline / deploy (push) Successful in 1m14s
- 新增 PPTReport 模型,支援快取查詢結果和檔案路徑 - 實作 growth/vendor/bcg 三種報告的快取機制 - 24 小時過期設定,避免重複計算 - 自動清理過期快取記錄 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
433 B
Python
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'})
|