feat: timetable refresh in 3 minutes

This commit is contained in:
KirinBaka
2025-05-07 15:36:33 +08:00
parent 1049c8c8df
commit 3db0a652ce

View File

@@ -244,6 +244,15 @@ const Timetable = ({
refresh();
};
main();
// Auto refresh the entire timetable every 3 minutes
const fullRefreshInterval = setInterval(() => {
main();
}, 3 * 60 * 1000); // 3 minutes in milliseconds
return () => {
clearInterval(fullRefreshInterval);
};
}, []);
const DownloadMarks = async () => {