Files
ewoooc/routes/elephant_alpha_routes.py
ogt b37658f7be
Some checks failed
CD Pipeline / deploy (push) Failing after 51s
fix: 修復 growth_analysis/abc_analysis 全表掃描 hang + elephant_alpha Blueprint stub
- growth_analysis: 改用 SQL 月度聚合 (3 個 targeted queries) 取代讀取 748k 行進 pandas
- _get_filtered_sales_data: 冷快取補載時 months=0 改為 months=12,避免全表掃描 hang
- elephant_alpha_routes: 補建 Blueprint stub 解除啟動 import 失敗警告

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

17 lines
437 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': 'stub', 'message': 'Elephant Alpha not yet implemented'})