aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2021-05-29 13:36:40 -0700
committerGalen Guyer <galen@galenguyer.com>2021-05-29 13:41:34 -0700
commit53f79e35083b96cd15c57dc32be8d5e5f5d07833 (patch)
tree9a83b918cd269743c2b5421505d4e19de870eb93
parent02c1b92276a7cbad43df05b702ce12b40ad6b9b6 (diff)
Only get fall and spring data
-rw-r--r--src/App.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/App.js b/src/App.js
index c4dfc7d..9b9c8d8 100644
--- a/src/App.js
+++ b/src/App.js
@@ -30,7 +30,9 @@ function App() {
</div>
);
+ rawData = rawData.slice(0, 177);
let data = rawData;
+ console.log(data.length);
const local = DateTime.local().zoneName;
const semesterStart = DateTime.fromISO("2021-01-01");
if (!showAllTime) {
@@ -57,7 +59,6 @@ function App() {
});
}
- console.log(data);
const latest = data[data.length - 1];
const prior = data[data.length - (1 + timeDifference)];
const lastUpdate = DateTime.fromSQL(latest.last_updated, { zone: "UTC" }).setZone(local);