From 9d959eecc39990a2774f18dac97e3e50093ecbd8 Mon Sep 17 00:00:00 2001 From: s3lph Date: Tue, 4 Feb 2020 18:03:20 +0100 Subject: [PATCH] Hotfix: Properly parse config files --- matemat/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matemat/__main__.py b/matemat/__main__.py index 5da5ea8..22043dd 100644 --- a/matemat/__main__.py +++ b/matemat/__main__.py @@ -7,7 +7,7 @@ import bottle from matemat.db import MatematDatabase from matemat.webserver import cron from matemat.webserver.logger import Logger -from matemat.webserver.config import get_config, parse_config_file +from matemat.webserver.config import get_config, get_app_config, parse_config_file from matemat.webserver.template import init as template_init # Those imports are actually needed, as they implicitly register pagelets. @@ -75,7 +75,7 @@ def main(): config = get_config() - _init(config) + _init(get_app_config()) host: str = config['listen'] port: int = int(str(config['port']))