pis #2

Merged
fred.boniface merged 76 commits from pis into main 2023-05-06 21:53:45 +01:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 896ff6a532 - Show all commits

View File

@ -37,7 +37,8 @@ async function insertData(json) {
const data = JSON.parse(json) const data = JSON.parse(json)
let results = 0 let results = 0
for(var i = 0; i < data.length; i++) { // Break into separate function. Need to for(var i = 0; i < data.length; i++) { // Break into separate function. Need to
// iterate over stops. // iterate over stops and print them in the
// format: `AVN, PRI, SHH... etc.`
tableData += `<tr><td class="code">${data[i][code]}</td> tableData += `<tr><td class="code">${data[i][code]}</td>
<td class="stops">${data[i][stops]}</td></tr>` <td class="stops">${data[i][stops]}</td></tr>`
results++ results++