• Vũ Hoàng Anh's avatar
    refactor: extract constants, centralize IPs/URLs, archive migration scripts · 8b5809bb
    Vũ Hoàng Anh authored
    - NEW: backend/common/constants.py (SQLITE_DB_PATH, SQLITE_GENDER_MAP, KID_SAFE_KEYWORDS, normalize_gender)
    - NEW: config.py += CHATBOT_API_BASE, LANGFUSE_SELF_HOSTED_URL, N8N_BASE_URL, LITELLM_BASE_URL, STARROCKS_INGEST_HOST
    - REFACTORED: stylist_engine.py (removed duplicate maps, inline imports, dead _get_fallback_mappings)
    - REFACTORED: lead_search_tool.py, outfit_matcher_worker.py, sqlite_mock.py, outfit_db.py (use SQLITE_DB_PATH)
    - REFACTORED: live_monitor_route, prompt_optimizer, user_simulator, simulation_runner (use CHATBOT_API_BASE)
    - REFACTORED: faq_route.py, n8n_desc.py (use LITELLM_BASE_URL)
    - ARCHIVED: seed_rules.py, migrate_outfit_matches.py, check_*, inspect_db.py, recover_links.py to _archive/
    - ZERO hardcoded IPs remaining in runtime code
    8b5809bb
check_outfit_tables.py 2.13 KB