kunsi-mako-templating #7

Merged
sophie merged 3 commits from kunsi-mako-templating into kunsi-improvements 2021-04-11 08:59:36 +00:00
Showing only changes of commit 2ff0ca382f - Show all commits

View file

@ -2,11 +2,14 @@
import requests
import urllib3
from os import environ
import tomlkit
urllib3.disable_warnings()
CONFIGFILE = environ.get('STATUSPAGE_CONFIG', 'config.toml')
class StatusPage:
def get_api_result(self):
if self.services:
@ -141,7 +144,7 @@ class StatusPage:
def __init__(self):
self.config = tomlkit.loads(open('config.toml').read())
self.config = tomlkit.loads(open(CONFIGFILE).read())
self.services = {}
self.ragecounter = 0