import sys, os; sys.path.append(r"D:\cnf\chatbot-canifa-feedback\backend"); from common.pool_wrapper import get_pooled_connection_compat; conn = get_pooled_connection_compat(); cur = conn.cursor(); cur.execute("SELECT product_line, COUNT(*) FROM dashboard_canifa.ultra_descriptions WHERE LOWER(product_name) LIKE '%chống nắng%' OR LOWER(product_name) LIKE '%gió%' OR LOWER(product_line) LIKE '%chống nắng%' GROUP BY product_line"); print(cur.fetchall()); cur.close(); conn.close()
