Spaces:
Running
Running
BraydenMoore
commited on
Commit
•
bc55fe4
1
Parent(s):
d56b6bf
allow me to be lazy
Browse files- Templates/index.html +11 -2
Templates/index.html
CHANGED
@@ -425,8 +425,17 @@
|
|
425 |
}
|
426 |
|
427 |
const columns = ['Date','Away Team', 'Home Team'];
|
428 |
-
|
429 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
|
431 |
pulled_games.forEach((game, index) => {
|
432 |
const row = table.insertRow(-1);
|
|
|
425 |
}
|
426 |
|
427 |
const columns = ['Date','Away Team', 'Home Team'];
|
428 |
+
let lines;
|
429 |
+
try {
|
430 |
+
const lines_response = await fetch('/get_lines');
|
431 |
+
if (!lines_response.ok) {
|
432 |
+
throw new Error(`HTTP error! status: ${lines_response.status}`);
|
433 |
+
}
|
434 |
+
lines = await lines_response.json();
|
435 |
+
}
|
436 |
+
catch (error) {
|
437 |
+
lines = new Array(20).fill(0);
|
438 |
+
}
|
439 |
|
440 |
pulled_games.forEach((game, index) => {
|
441 |
const row = table.insertRow(-1);
|