From 941e1a896548df879af7b16ac8d810039edb3694 Mon Sep 17 00:00:00 2001 From: William Date: Thu, 21 Apr 2022 14:41:19 +0200 Subject: [PATCH] Commit --- app/view/pages/race/live.php | 94 ++++++++++++++++++++---------------- public/api/v1/race/sync.php | 10 +--- 2 files changed, 54 insertions(+), 50 deletions(-) diff --git a/app/view/pages/race/live.php b/app/view/pages/race/live.php index 456fd1c..bb54eff 100644 --- a/app/view/pages/race/live.php +++ b/app/view/pages/race/live.php @@ -12,61 +12,71 @@ Laster inn... \ No newline at end of file diff --git a/public/api/v1/race/sync.php b/public/api/v1/race/sync.php index 56fb1e5..febcade 100644 --- a/public/api/v1/race/sync.php +++ b/public/api/v1/race/sync.php @@ -22,15 +22,9 @@ foreach ($times as $time) { $team = $team_mapper->get($time->team_id); - if (!$team) - { - // this should not happen as related times should be deleted with the team - #continue; - } - $row = [ - "n" => $team->name, - "d" => $time->date->getTimestamp() + "name" => $team->name, + "date" => $time->date->getTimestamp() ]; array_push($data, $row);