const { createClient } = require('@supabase/supabase-js'); require('dotenv').config({ path: '/Users/mathisgrillot/IdeaProjects/afficheurs-ferrovia/.env' }); const supabase = createClient(process.env.REACT_APP_SUPABASE_URL, process.env.REACT_APP_SUPABASE_ANON_KEY); async function test() { const { data: horaires } = await supabase.from('horaires').select('*').limit(100); const matched = horaires.filter(h => JSON.stringify(h).includes("Ouges")); const h = matched[0]; console.log("Train:", h.numero_train); console.log("Stops:", h.gares_desservies.map(s => ({ gare_nom: s.gare_nom, quai_reel: s.quai_reel, gare_id: s.gare_id }))); } test();