Skip to content

Commit 1c9e52a

Browse files
committed
added logging
1 parent 0699cb1 commit 1c9e52a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

leaderboard.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ <h3 style="text-align: center;">NWoC 2020 Leaderboard</h3>
111111
var sortedData=[];
112112
for(var i = 0; i<rows.length ; i++) {
113113
var cells = rows[i].split(',');
114-
// if (cells.length != 2) {
115-
// $('#leader-div').html('<p>Data could not be parsed.</p>');
116-
// return;
117-
// }
114+
if (cells.length != 2) {
115+
$('#leader-div').html('<p>Data could not be parsed.</p>');
116+
return;
117+
}
118+
console.log(cells.length)
118119
console.log("data",cells[1]);
119120
sortedData.push({score: parseInt(cells[1].trim()), username: cells[0]});
120121
}

0 commit comments

Comments
 (0)