Skip to content

Commit

Permalink
Quick fix: checking was every 300 minutes not 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tfloow committed Jan 23, 2024
1 parent f50fe9c commit 182507a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
20 changes: 10 additions & 10 deletions services.json
Original file line number Diff line number Diff line change
@@ -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/"
}
Expand Down

0 comments on commit 182507a

Please sign in to comment.