feat: timetable refresh in 3 minutes
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user