Merge branch 'hotfix-packages' into 'master'

Hotfix: Properly parse config files

See merge request s3lph/matemat!67
This commit is contained in:
s3lph 2020-02-04 17:05:17 +00:00
commit 9a09346a44

View file

@ -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']))