"""Parse outfit_recommendations JSON string from One Big Table into list[dict]."""
ifnottop_codes:returnproducts
try:
conn=sqlite3.connect(SQLITE_DB_PATH)
conn.row_factory=sqlite3.Row
cursor=conn.cursor()
placeholders=",".join(["?"]*len(top_codes))
outfits=cursor.execute(f"SELECT * FROM pg__dashboard_canifa__ai_outfit_product_matches WHERE anchor_product_code IN ({placeholders})",top_codes).fetchall()