From 1c482c3f66e6730400625e5691e1b7b52a160b93 Mon Sep 17 00:00:00 2001 From: grichet Date: Fri, 2 Jun 2017 18:16:37 +0200 Subject: [PATCH] Add API filter to retrieve only not completed matches --- apps/backend/modules/matchs/actions/actions.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/modules/matchs/actions/actions.class.php b/apps/backend/modules/matchs/actions/actions.class.php index 8fcc3555..b9b1d436 100644 --- a/apps/backend/modules/matchs/actions/actions.class.php +++ b/apps/backend/modules/matchs/actions/actions.class.php @@ -1078,7 +1078,7 @@ private function fetchTournament(ToornamentAPI $api, $tournamentId) ); } - $games = $api->get("v1/tournaments/" . $tournamentId . "/matches?with_games=1&sort=schedule", array(), true); + $games = $api->get("v1/tournaments/" . $tournamentId . "/matches?with_games=1&sort=schedule&has_result=0", array(), true); foreach ($games as $match) { $matches['stages'][$match['stage_number']]['matches'][] = $match; }