From d99f7709b4ae503faf05df2f1db209d8e93f78fa Mon Sep 17 00:00:00 2001 From: William Date: Wed, 30 Mar 2022 12:11:39 +0000 Subject: [PATCH] Commit --- app/view/pages/race/live-results.php | 2 +- public/race/sync.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();