Compare commits
No commits in common. "6e0eb2abcc1b8ac8ba92b6fd1a8f2e9aea1edbbb" and "fed8dab57cf3631c79f14174643ba7914e732b54" have entirely different histories.
6e0eb2abcc
...
fed8dab57c
2 changed files with 2 additions and 3 deletions
|
@ -145,7 +145,6 @@ class TrackerController extends Controller
|
||||||
// Otherwise, download the trip data from the Wayward API.
|
// Otherwise, download the trip data from the Wayward API.
|
||||||
if ($forceDownload) {
|
if ($forceDownload) {
|
||||||
Log::debug("Forcing download for '{$tripFileName}'.");
|
Log::debug("Forcing download for '{$tripFileName}'.");
|
||||||
Storage::disk('local')->delete($tripFileName);
|
|
||||||
} else {
|
} else {
|
||||||
Log::debug("No cached trip file found for '{$tripFileName}'.");
|
Log::debug("No cached trip file found for '{$tripFileName}'.");
|
||||||
}
|
}
|
||||||
|
@ -169,7 +168,7 @@ class TrackerController extends Controller
|
||||||
Storage::disk('local')->put($tripFileName, json_encode($data));
|
Storage::disk('local')->put($tripFileName, json_encode($data));
|
||||||
} else {
|
} else {
|
||||||
$cachedData = json_decode(Storage::disk('local')->get($tripFileName));
|
$cachedData = json_decode(Storage::disk('local')->get($tripFileName));
|
||||||
if (end($data->checkins)->date !== end($cachedData->checkins)->date) {
|
if ($data->trip->updated_at !== $cachedData->trip->updated_at) {
|
||||||
Log::debug(
|
Log::debug(
|
||||||
"Cached trip file '" .
|
"Cached trip file '" .
|
||||||
$tripFileName .
|
$tripFileName .
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
attribution: 'OpenStreetMap'
|
attribution: 'OpenStreetMap'
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
@for($idx = 0; $idx <= count($trip->locations); $idx += 99)
|
@for($idx = 0; $idx <= count($trip->locations); $idx += 100)
|
||||||
/*
|
/*
|
||||||
* Populate the route line.
|
* Populate the route line.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue