needed more config

This commit is contained in:
Jörn-Michael Miehe 2022-09-15 22:19:23 +00:00
parent 1a9f284447
commit a16ff9d98c

View file

@ -86,6 +86,15 @@ class ServerUIConfig(BaseModel):
host: str = "https://oekzident.de" host: str = "https://oekzident.de"
class LogoUIConfig(BaseModel):
"""
Section "[logo]" in "config.txt".
"""
name: str = "Technisches Hilfswerk"
host: str = "OV Musterstadt"
class Config(BaseModel): class Config(BaseModel):
""" """
Main representation of "config.txt". Main representation of "config.txt".
@ -94,9 +103,10 @@ class Config(BaseModel):
image_dir: str = "image" image_dir: str = "image"
text_dir: str = "text" text_dir: str = "text"
logo: LogoUIConfig = LogoUIConfig()
image: ImageConfig = ImageConfig()
server: ServerUIConfig = ServerUIConfig() server: ServerUIConfig = ServerUIConfig()
ticker: TickerConfig = TickerConfig() ticker: TickerConfig = TickerConfig()
image: ImageConfig = ImageConfig()
calendar: CalendarConfig = CalendarConfig() calendar: CalendarConfig = CalendarConfig()
@classmethod @classmethod