[20-Feb-2026 00:05:05 Europe/Paris] ========== TRIGGER STEP 4 : Traitement fin+notation match ========== [20-Feb-2026 00:05:05 Europe/Paris] [DBG] TRIGGER_CTX step=4 | ctx={"match_id":1678,"tournoi_id":7,"e1":64,"e2":54,"s1_raw":"0","s2_raw":"0","phase_text":"Éliminatoire : 1 matchs (Tour suivant)"} [20-Feb-2026 00:05:05 Europe/Paris] [DBG] Etat match normalisé | ctx={"s1":0,"s2":0,"isElim":true,"conteste":false,"egalite":true} [20-Feb-2026 00:05:05 Europe/Paris] [DBG] Résultat calcul | ctx={"gagnantTerrain":null,"points_e1":0,"points_e2":0,"vainqueur_id":64,"elim_loser_id":54,"delta_e1":0,"delta_e2":0} [20-Feb-2026 00:05:05 Europe/Paris] [DBG] Avant transaction MAJ | ctx={"te1":{"id":"1048","date":"2026-02-19 19:30:21","tournoi":"7","equipe":"64","emarge":"1","j":"8","points":"11","ratio":"6","elimine":"0","elimine_date":"0000-00-00 00:00:00","beercoins_gagnes":"0"},"te2":{"id":"1018","date":"2026-02-17 18:06:39","tournoi":"7","equipe":"54","emarge":"1","j":"8","points":"11","ratio":"3","elimine":"0","elimine_date":"0000-00-00 00:00:00","beercoins_gagnes":"0"}} [20-Feb-2026 00:05:05 Europe/Paris] [DBG] Nouvelles valeurs | ctx={"new_j_e1":8,"new_points_e1":11,"new_ratio_e1":6,"new_elim_e1":0,"new_j_e2":8,"new_points_e2":11,"new_ratio_e2":3,"new_elim_e2":1} [20-Feb-2026 00:05:05 Europe/Paris] [DBG] Transaction OK étape 4 | ctx={"match_id":1678,"q3":"UPDATE Tournoi_Match SET termine=1, gagnant=64 WHERE id=1678 LIMIT 1"} [20-Feb-2026 00:05:06 Europe/Paris] [DBG] Notifs étape 4 envoyées | ctx={"match_id":1678,"sent_to":[60,63],"isElim":true,"conteste":false,"egalite":true,"vainqueur_id":64,"elim_loser_id":54} [20-Feb-2026 00:05:06 Europe/Paris] Étape 4 OK match 1678 — phaseElim=1, s1=0, s2=0, gagnant=64, elim=54 [20-Feb-2026 00:05:06 Europe/Paris] [DBG] Aucun match elim en attente -> création next step possible | ctx={"tournoi_id":7} [20-Feb-2026 00:05:06 Europe/Paris] Tournoi 7 : équipes restantes BEFORE next round => 61(pts:16,ratio:19,j:8), 64(pts:11,ratio:6,j:8) [20-Feb-2026 00:05:06 Europe/Paris] Tournoi 7 : PAIRS best-vs-worst => 61vs64 [20-Feb-2026 00:05:06 Europe/Paris] ========== TRIGGER STEP 6 : Création tour suivant éliminatoire ========== [20-Feb-2026 00:05:06 Europe/Paris] [DBG] TRIGGER_CTX step=6 | ctx={"tournoi_id":7,"N":2,"pairs":[[61,64]],"byes":[],"round_label":"Finale"} [20-Feb-2026 00:05:06 Europe/Paris] [DBG] Match tour suivant créé | ctx={"tournoi_id":7,"a":61,"b":64,"table":1,"date":"2026-02-20 00:05:00","phase":"Éliminatoire : Finale"} [20-Feb-2026 00:05:06 Europe/Paris] [DBG] Transaction création tour suivant OK | ctx={"tournoi_id":7,"created":1,"phase":"Éliminatoire : Finale"} [20-Feb-2026 00:05:10 Europe/Paris] [DBG] Notif globale tour suivant | ctx={"tournoi_id":7,"round_label":"Finale","players_count":23} [20-Feb-2026 00:05:10 Europe/Paris] Tournoi 7 : création tour suivant (Finale), matches créés = 1, byes = 0 [2026-02-20 00:05:10] ÉTAPE 1 ÉTAPE 2 ÉTAPE 3 ÉTAPE 4 ÉTAPE 5 ÉTAPE 6/7 (Passage tours & Fin tournoi) --- FIN DU SCRIPT === END LOG 2026-02-20 00:05:10 ===