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'})
