needed more config
This commit is contained in:
parent
1a9f284447
commit
a16ff9d98c
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue