Update school.ts

This commit is contained in:
Neon 2025-02-27 11:38:04 -05:00 committed by GitHub
parent b4407874bb
commit 3ce889eb39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,9 +179,10 @@ export async function fetchAssignments() {
export function tempcronjob(app: ModifiedApp) {
setInterval(() => {
try {
fetchHomePage()
.then((r) => r.json())
.then(console.log);
fetchHomePage().then(data => {
app.db.set(`temp_mykcd_grades`, data)
})
console.log(`omg it worked`);
} catch (e) {
console.error(e, `#pointer-at-school`);