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