From a16ff9d98ca95048dbf7888bf10aa97abdeb7adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Thu, 15 Sep 2022 22:19:23 +0000 Subject: [PATCH] needed more config --- api/ovdashboard_api/config.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/api/ovdashboard_api/config.py b/api/ovdashboard_api/config.py index 8ea6353..d3a534b 100644 --- a/api/ovdashboard_api/config.py +++ b/api/ovdashboard_api/config.py @@ -86,6 +86,15 @@ class ServerUIConfig(BaseModel): host: str = "https://oekzident.de" +class LogoUIConfig(BaseModel): + """ + Section "[logo]" in "config.txt". + """ + + name: str = "Technisches Hilfswerk" + host: str = "OV Musterstadt" + + class Config(BaseModel): """ Main representation of "config.txt". @@ -94,9 +103,10 @@ class Config(BaseModel): image_dir: str = "image" text_dir: str = "text" + logo: LogoUIConfig = LogoUIConfig() + image: ImageConfig = ImageConfig() server: ServerUIConfig = ServerUIConfig() ticker: TickerConfig = TickerConfig() - image: ImageConfig = ImageConfig() calendar: CalendarConfig = CalendarConfig() @classmethod