Update webui/src/routes/bicycle/+page.svelte
This commit is contained in:
parent
7e36c36ec0
commit
ca7ff8e154
@ -15,6 +15,7 @@
|
|||||||
fetch(backend_url)
|
fetch(backend_url)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
console.log(data)
|
||||||
console.log(data.Years[year])
|
console.log(data.Years[year])
|
||||||
total_distance_value = data.Years[year].total_distance.value
|
total_distance_value = data.Years[year].total_distance.value
|
||||||
total_distance_unit = data.Years[year].total_distance.unit
|
total_distance_unit = data.Years[year].total_distance.unit
|
||||||
|
Loading…
Reference in New Issue
Block a user