diff --git a/app/view/pages/race/live-results.php b/app/view/pages/race/live-results.php index 40a6dfe..4c011a8 100644 --- a/app/view/pages/race/live-results.php +++ b/app/view/pages/race/live-results.php @@ -11,7 +11,7 @@ hash = 0; async function doTheThang() { - response = await fetch("sync.php?hash=" + hash); + response = await fetch("sync.php?h=" + hash); if (response.status === 204) { diff --git a/public/race/sync.php b/public/race/sync.php index 1f2217c..35bf1a8 100644 --- a/public/race/sync.php +++ b/public/race/sync.php @@ -10,7 +10,7 @@ use App\Timetable\TimeMapper; $teamMapper = new TimeMapper($app->database->conn); $timeMapper = new TimeMapper($app->database->conn); -$prev_hash = (int)filter_input(INPUT_GET, 'hash'); +$prev_hash = (int)filter_input(INPUT_GET, 'h'); $times = $timeMapper->getAll();