diag_11c.py
692 Bytes
import sys
sys.path.insert(0, "F:/data-report/data-process")
from report_utils import fetch_indicator_data, INDICATOR_BIZ_MAP
bz_l = INDICATOR_BIZ_MAP.get('light_reform')
print("light_reform biz =", bz_l)
ind_11 = fetch_indicator_data('2026-08-01', '2026-08-31', [bz_l], ['A036', 'A075', 'A084']) or {}
print("ind_11 entries:", len(ind_11))
tot_A036 = sum(float((v or {}).get('A036') or 0) for v in ind_11.values())
print("SUM A036 over matched merchants:", tot_A036)
# also test A0018 full
ind_total = fetch_indicator_data('2026-08-01', '2026-08-31', None, ['A0018']) or {}
print("A0018 entries:", len(ind_total), "SUM:", sum(float((v or {}).get('A0018') or 0) for v in ind_total.values()))