From 182507aa0d0e987e752a1f60068208d398fbe2e5 Mon Sep 17 00:00:00 2001 From: Tfloow <88899420+Tfloow@users.noreply.github.com> Date: Tue, 23 Jan 2024 21:42:40 +0100 Subject: [PATCH] Quick fix: checking was every 300 minutes not 5 minutes --- app.py | 2 +- services.json | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app.py b/app.py index 4624493..ba04bdc 100644 --- a/app.py +++ b/app.py @@ -49,7 +49,7 @@ def refreshServices(services): # Setup Scheduler to periodically check the status of the website scheduler = BackgroundScheduler() -scheduler.add_job(refreshServices, "interval" ,args=[services], minutes=jsonUtility.timeCheck, next_run_time=datetime.datetime.now() + datetime.timedelta(seconds=1)) +scheduler.add_job(refreshServices, "interval" ,args=[services], minutes=jsonUtility.timeCheck/60, next_run_time=datetime.datetime.now() + datetime.timedelta(seconds=1)) # Start the scheduler scheduler.start() diff --git a/services.json b/services.json index 8b05950..d1e4f04 100644 --- a/services.json +++ b/services.json @@ -1,51 +1,51 @@ { "404-Test": { - "Last access time": "2024-01-23T19:48:44", + "Last access time": "2024-01-23T20:41:43", "Last status": false, "url": "https://www.google.com/404" }, "ADE": { - "Last access time": "2024-01-23T19:48:44", + "Last access time": "2024-01-23T20:41:43", "Last status": true, "url": "https://horaire.uclouvain.be/direct/" }, "ADE-Scheduler": { - "Last access time": "2024-01-23T19:48:45", + "Last access time": "2024-01-23T20:41:44", "Last status": true, "url": "https://ade-scheduler.info.ucl.ac.be/calendar/" }, "Comproved": { - "Last access time": "2024-01-23T19:48:46", + "Last access time": "2024-01-23T20:41:45", "Last status": true, "url": "https://app.comproved.com/universite-de-louvain" }, "Gradescope": { - "Last access time": "2024-01-23T19:48:48", + "Last access time": "2024-01-23T20:41:46", "Last status": true, "url": "https://www.gradescope.com/" }, "Intranet": { - "Last access time": "2024-01-23T19:48:49", + "Last access time": "2024-01-23T20:41:47", "Last status": true, "url": "https://intranet.uclouvain.be" }, "LEPL1104": { - "Last access time": "2024-01-23T19:48:49", + "Last access time": "2024-01-23T20:41:48", "Last status": true, "url": "https://perso.uclouvain.be/vincent.legat/zouLab/epl1104.php" }, "LEPL1201": { - "Last access time": "2024-01-23T19:48:50", + "Last access time": "2024-01-23T20:41:24", "Last status": true, "url": "https://perso.uclouvain.be/vincent.legat/zouLab/epl1201.php" }, "Moodle": { - "Last access time": "2024-01-23T19:48:51", + "Last access time": "2024-01-23T20:41:25", "Last status": true, "url": "https://moodle.uclouvain.be/" }, "UCLouvain": { - "Last access time": "2024-01-23T19:48:53", + "Last access time": "2024-01-23T20:41:27", "Last status": true, "url": "https://www.uclouvain.be/" }