Skip to content

Commit

Permalink
Compliance with master
Browse files Browse the repository at this point in the history
  • Loading branch information
Tfloow committed Jan 25, 2024
1 parent eb77fb0 commit b5019a1
Show file tree
Hide file tree
Showing 69 changed files with 185 additions and 1,012 deletions.
7 changes: 3 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
# For compatibility
import dataReport
except ImportError as e:
print(f"[LOG] Error on startup: not all packages could be properly imported:\n{e}.")
logger.warning(f"[LOG] Error on startup: not all packages could be properly imported:\n{e}.")
raise exit(1)
except ImportWarning as w:
print(f"[LOG] Warning on startup: not all packages could be properly imported:\n{w}")
logger.warning(f"[LOG] Warning on startup: not all packages could be properly imported:\n{w}")


# Load JSON files ######################################################################################################
Expand Down Expand Up @@ -66,7 +66,7 @@ def refreshServices():
session = requests.Session()

for service in services:
print(service)
logger.info(service)
updateStatusService(service.name, session)

session.close()
Expand Down Expand Up @@ -103,7 +103,6 @@ def serviceList():

for service in services:
dictService.append(dict(service=service, reportedStatus=dataReport.getLastReport(service.name)))

return render_template("serviceList.html", servicesInfo=dictService)


Expand Down
13 changes: 3 additions & 10 deletions data/404-Test/log.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
date,UP
2024-01-22T13:26:59,True
2024-01-22T16:02:54,True
2024-01-22T16:17:41,True
2024-01-22T18:16:18,False
2024-01-22T20:48:32,False
2024-01-22T22:28:36,False
2024-01-23T09:55:10,False
2024-01-23T12:15:12,False
2024-01-23T20:44:12,False
2024-01-24T20:23:44,True
2024-01-25T02:21:35,True
2024-01-25T02:21:35,True
2024-01-25T02:31:35,True
104 changes: 4 additions & 100 deletions data/404-Test/outageReport.csv
Original file line number Diff line number Diff line change
@@ -1,101 +1,5 @@
date,UP
2024-01-25T02:11:34,False
2024-01-25T02:11:34,False
2024-01-25T02:21:34,False
2024-01-25T02:21:34,False
2024-01-25T02:31:34,False
2024-01-25T02:31:34,False
2024-01-25T02:41:34,False
2024-01-25T02:41:34,False
2024-01-25T02:51:34,False
2024-01-25T02:51:34,False
2024-01-25T03:01:34,False
2024-01-25T03:01:34,False
2024-01-25T03:11:34,False
2024-01-25T03:11:34,False
2024-01-25T03:21:34,False
2024-01-25T03:21:34,False
2024-01-25T03:31:34,False
2024-01-25T03:31:34,False
2024-01-25T03:41:34,False
2024-01-25T03:41:34,False
2024-01-25T03:51:34,False
2024-01-25T03:51:34,False
2024-01-25T04:01:34,False
2024-01-25T04:01:34,False
2024-01-25T04:11:34,False
2024-01-25T04:11:34,False
2024-01-25T04:21:34,False
2024-01-25T04:21:34,False
2024-01-25T04:31:34,False
2024-01-25T04:31:34,False
2024-01-25T04:41:34,False
2024-01-25T04:41:34,False
2024-01-25T04:51:34,False
2024-01-25T04:51:34,False
2024-01-25T05:01:34,False
2024-01-25T05:01:34,False
2024-01-25T05:11:34,False
2024-01-25T05:11:34,False
2024-01-25T05:21:34,False
2024-01-25T05:21:34,False
2024-01-25T05:31:34,False
2024-01-25T05:31:34,False
2024-01-25T05:41:34,False
2024-01-25T05:41:34,False
2024-01-25T05:51:34,False
2024-01-25T05:51:34,False
2024-01-25T06:01:34,False
2024-01-25T06:01:34,False
2024-01-25T06:11:34,False
2024-01-25T06:11:34,False
2024-01-25T06:21:34,False
2024-01-25T06:21:34,False
2024-01-25T06:31:34,False
2024-01-25T06:31:34,False
2024-01-25T06:41:34,False
2024-01-25T06:41:34,False
2024-01-25T06:51:34,False
2024-01-25T06:51:34,False
2024-01-25T07:01:34,False
2024-01-25T07:01:34,False
2024-01-25T07:11:34,False
2024-01-25T07:11:34,False
2024-01-25T07:21:34,False
2024-01-25T07:21:34,False
2024-01-25T07:31:34,False
2024-01-25T07:31:34,False
2024-01-25T07:41:34,False
2024-01-25T07:41:34,False
2024-01-25T07:51:34,False
2024-01-25T07:51:34,False
2024-01-25T08:01:34,False
2024-01-25T08:01:34,False
2024-01-25T08:11:34,False
2024-01-25T08:11:34,False
2024-01-25T08:21:34,False
2024-01-25T08:21:34,False
2024-01-25T08:31:34,False
2024-01-25T08:31:34,False
2024-01-25T08:41:34,False
2024-01-25T08:41:34,False
2024-01-25T08:51:34,False
2024-01-25T08:51:34,False
2024-01-25T09:01:34,False
2024-01-25T09:01:34,False
2024-01-25T09:11:34,False
2024-01-25T09:11:34,False
2024-01-25T09:21:34,False
2024-01-25T09:21:34,False
2024-01-25T09:31:34,False
2024-01-25T09:31:34,False
2024-01-25T09:41:34,False
2024-01-25T09:41:34,False
2024-01-25T09:54:44,False
2024-01-25T09:54:45,False
2024-01-25T09:55:36,False
2024-01-25T09:55:37,False
2024-01-25T09:56:28,False
2024-01-25T09:56:29,False
2024-01-25T11:01:40,False
2024-01-25T11:01:40,False
2024-01-25T02:21:35,True
2024-01-25T02:21:35,True
2024-01-25T02:31:35,True
2024-01-25T11:55:19,False
9 changes: 4 additions & 5 deletions data/404-Test/outageReportArchive.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!doctype html>
<html lang=en>
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
date,UP
2024-01-25T02:21:35,True
2024-01-25T02:21:35,True
2024-01-25T02:31:35,True
7 changes: 3 additions & 4 deletions data/ADE-Scheduler/log.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
date,UP
2024-01-22T12:26:20,True
2024-01-22T12:26:24,False
2024-01-22T12:26:35,True
2024-01-22T14:21:02,True
2024-01-25T02:21:35,True
2024-01-25T02:21:35,True
2024-01-25T02:31:35,True
96 changes: 1 addition & 95 deletions data/ADE-Scheduler/outageReport.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,98 +2,4 @@ date,UP
2024-01-25T02:21:35,True
2024-01-25T02:21:35,True
2024-01-25T02:31:35,True
2024-01-25T02:31:35,True
2024-01-25T02:41:35,True
2024-01-25T02:41:35,True
2024-01-25T02:51:35,True
2024-01-25T02:51:35,True
2024-01-25T03:01:35,True
2024-01-25T03:01:35,True
2024-01-25T03:11:35,True
2024-01-25T03:11:35,True
2024-01-25T03:21:35,True
2024-01-25T03:21:35,True
2024-01-25T03:31:35,True
2024-01-25T03:31:35,True
2024-01-25T03:41:35,True
2024-01-25T03:41:35,True
2024-01-25T03:51:35,True
2024-01-25T03:51:35,True
2024-01-25T04:01:35,True
2024-01-25T04:01:35,True
2024-01-25T04:11:36,True
2024-01-25T04:11:36,True
2024-01-25T04:21:35,True
2024-01-25T04:21:35,True
2024-01-25T04:31:35,True
2024-01-25T04:31:35,True
2024-01-25T04:41:35,True
2024-01-25T04:41:35,True
2024-01-25T04:51:35,True
2024-01-25T04:51:35,True
2024-01-25T05:01:35,True
2024-01-25T05:01:35,True
2024-01-25T05:11:35,True
2024-01-25T05:11:35,True
2024-01-25T05:21:35,True
2024-01-25T05:21:35,True
2024-01-25T05:31:37,True
2024-01-25T05:31:37,True
2024-01-25T05:41:35,True
2024-01-25T05:41:35,True
2024-01-25T05:51:35,True
2024-01-25T05:51:35,True
2024-01-25T06:01:35,True
2024-01-25T06:01:35,True
2024-01-25T06:11:35,True
2024-01-25T06:11:35,True
2024-01-25T06:21:35,True
2024-01-25T06:21:35,True
2024-01-25T06:31:35,True
2024-01-25T06:31:35,True
2024-01-25T06:41:35,True
2024-01-25T06:41:35,True
2024-01-25T06:51:35,True
2024-01-25T06:51:35,True
2024-01-25T07:01:35,True
2024-01-25T07:01:35,True
2024-01-25T07:11:35,True
2024-01-25T07:11:35,True
2024-01-25T07:21:35,True
2024-01-25T07:21:35,True
2024-01-25T07:31:35,True
2024-01-25T07:31:35,True
2024-01-25T07:41:35,True
2024-01-25T07:41:35,True
2024-01-25T07:51:35,True
2024-01-25T07:51:35,True
2024-01-25T08:01:35,True
2024-01-25T08:01:35,True
2024-01-25T08:11:35,True
2024-01-25T08:11:35,True
2024-01-25T08:21:35,True
2024-01-25T08:21:35,True
2024-01-25T08:31:35,True
2024-01-25T08:31:35,True
2024-01-25T08:41:35,True
2024-01-25T08:41:35,True
2024-01-25T08:51:35,True
2024-01-25T08:51:35,True
2024-01-25T09:01:35,True
2024-01-25T09:01:35,True
2024-01-25T09:11:35,True
2024-01-25T09:11:35,True
2024-01-25T09:21:35,True
2024-01-25T09:21:35,True
2024-01-25T09:31:35,True
2024-01-25T09:31:35,True
2024-01-25T09:41:35,True
2024-01-25T09:41:35,True
2024-01-25T09:55:08,True
2024-01-25T09:55:09,True
2024-01-25T09:56:00,True
2024-01-25T09:56:01,True
2024-01-25T09:56:51,True
2024-01-25T09:56:52,True
2024-01-25T11:01:42,True
2024-01-25T11:01:42,True
2024-01-25T11:59:03,True
9 changes: 4 additions & 5 deletions data/ADE-Scheduler/outageReportArchive.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!doctype html>
<html lang=en>
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>
date,UP
2024-01-25T02:21:35,True
2024-01-25T02:21:35,True
2024-01-25T02:31:35,True
13 changes: 3 additions & 10 deletions data/ADE/log.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
date,UP
2024-01-22T14:03:05,True
2024-01-22T14:03:07,True
2024-01-22T14:21:15,True
2024-01-22T15:51:14,False
2024-01-22T15:51:19,True
2024-01-22T18:01:53,True
2024-01-22T18:17:02,True
2024-01-24T19:48:21,True
2024-01-24T19:56:12,False
2024-01-24T20:04:46,True
2024-01-25T02:21:35,True
2024-01-25T02:21:35,True
2024-01-25T02:31:35,True
99 changes: 2 additions & 97 deletions data/ADE/outageReport.csv
Original file line number Diff line number Diff line change
@@ -1,100 +1,5 @@
date,UP
2024-01-25T02:11:35,True
2024-01-25T02:21:35,True
2024-01-25T02:21:35,True
2024-01-25T02:31:34,True
2024-01-25T02:31:34,True
2024-01-25T02:41:35,True
2024-01-25T02:41:35,True
2024-01-25T02:51:35,True
2024-01-25T02:51:35,True
2024-01-25T03:01:35,True
2024-01-25T03:01:35,True
2024-01-25T03:11:34,True
2024-01-25T03:11:35,True
2024-01-25T03:21:34,True
2024-01-25T03:21:34,True
2024-01-25T03:31:35,True
2024-01-25T03:31:35,True
2024-01-25T03:41:35,True
2024-01-25T03:41:35,True
2024-01-25T03:51:35,True
2024-01-25T03:51:35,True
2024-01-25T04:01:34,True
2024-01-25T04:01:35,True
2024-01-25T04:11:35,True
2024-01-25T04:11:35,True
2024-01-25T04:21:35,True
2024-01-25T04:21:35,True
2024-01-25T04:31:34,True
2024-01-25T04:31:35,True
2024-01-25T04:41:35,True
2024-01-25T04:41:35,True
2024-01-25T04:51:35,True
2024-01-25T04:51:35,True
2024-01-25T05:01:35,True
2024-01-25T05:01:35,True
2024-01-25T05:11:35,True
2024-01-25T05:11:35,True
2024-01-25T05:21:35,True
2024-01-25T05:21:35,True
2024-01-25T05:31:35,True
2024-01-25T05:31:35,True
2024-01-25T05:41:34,True
2024-01-25T05:41:35,True
2024-01-25T05:51:35,True
2024-01-25T05:51:35,True
2024-01-25T06:01:35,True
2024-01-25T06:01:35,True
2024-01-25T06:11:35,True
2024-01-25T06:11:35,True
2024-01-25T06:21:34,True
2024-01-25T06:21:35,True
2024-01-25T06:31:35,True
2024-01-25T06:31:35,True
2024-01-25T06:41:35,True
2024-01-25T06:41:35,True
2024-01-25T06:51:35,True
2024-01-25T06:51:35,True
2024-01-25T07:01:35,True
2024-01-25T07:01:35,True
2024-01-25T07:11:35,True
2024-01-25T07:11:35,True
2024-01-25T07:21:35,True
2024-01-25T07:21:35,True
2024-01-25T07:31:35,True
2024-01-25T07:31:35,True
2024-01-25T07:41:35,True
2024-01-25T07:41:35,True
2024-01-25T07:51:35,True
2024-01-25T07:51:35,True
2024-01-25T08:01:35,True
2024-01-25T08:01:35,True
2024-01-25T08:11:35,True
2024-01-25T08:11:35,True
2024-01-25T08:21:35,True
2024-01-25T08:21:35,True
2024-01-25T08:31:35,True
2024-01-25T08:31:35,True
2024-01-25T08:41:35,True
2024-01-25T08:41:35,True
2024-01-25T08:51:34,True
2024-01-25T08:51:35,True
2024-01-25T09:01:35,True
2024-01-25T09:01:35,True
2024-01-25T09:11:35,True
2024-01-25T09:11:35,True
2024-01-25T09:21:35,True
2024-01-25T09:21:35,True
2024-01-25T09:31:35,True
2024-01-25T09:31:35,True
2024-01-25T09:41:35,True
2024-01-25T09:41:35,True
2024-01-25T09:55:07,True
2024-01-25T09:55:08,True
2024-01-25T09:55:59,True
2024-01-25T09:56:00,True
2024-01-25T09:56:50,True
2024-01-25T09:56:51,True
2024-01-25T11:01:41,True
2024-01-25T11:01:41,True
2024-01-25T02:31:35,True
2024-01-25T11:58:41,True
Loading

0 comments on commit b5019a1

Please sign in to comment.